Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Scott A French
New Member.
492 views

New to C$xml

I am trying to learn to use the c$xml routines. Below is a sample xml file I am trying to process. I need to read the information in the CustomValuesXml.

<?xml version="1.0" encoding="utf-8"?>
<Orders Version="3.80">
<Order>
<OrderId>55154</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;charge-back member-number="00167647" role="401" unit-type="A" unit-type-name="Assembly" unit-number="00001185" jurisdiction="Wheeling" jurisdiction-cd="WV" /&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
<Order>
<OrderId>55155</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;offline-payment type="CHECK" number="123" amount="456" control-number="789" state="FL" /&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
<Order>
<OrderId>55156</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;offline-payment type="VIP" member-number="123" council-number="456" control-number="789" amount="123" state="FL" /&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
<Order>
<OrderId>55157</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;offline-payment type="CC" auth-code="123" credit-card-number="4567" control-number="789" amount="101112" state="FL"/&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
<Order>
<OrderId>55158</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;offline-payment type="CB" member-name="MeMember" member-office="MeOffice" member-number="MeNumber" member-role="MeRol" member-email-address="tester@bayshoresolutions.com" unit-type="MeUnit" unit-type-name="MeUnitName" unit-number="MeUnitNumber" jurisdiction="MeJurisdiction" jurisdiction-cd="MECD" council-number="123" control-number="456" amount="789" /&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
<Order>
<OrderId>55159</OrderId>
<CustomValuesXml>&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;DictionarySerializer&gt;&lt;item&gt;&lt;key&gt;po_number&lt;/key&gt;&lt;value&gt;&amp;lt;offline-payment type="PO" name="MePoPerson" department="MeDept" usage="MeUsage" ordered-by="MeOrderedBy" number="123" date-required="5/22/2016" /&amp;gt;&lt;/value&gt;&lt;/item&gt;&lt;/DictionarySerializer&gt;</CustomValuesXml>
</Order>
</Orders>

Any help would be greatly appreciated. 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.