The Path To XML-INTO Happiness, Part 3
September 1, 2015 Jon Paris
Note: The code accompanying this article is available for download here. In part 1 and part 2 of my XML series, I introduced you to the basics of using RPG’s XML support. In this tip we begin to explore some of the challenges that you may face when processing commercial XML documents, and the support RPG offers to handle them. Take a look at the snippet of an XML document below: <ItemsXRef > <Header RefId="xxxxx" TimeStamp="2011-11-30T00:06:06.643Z"> <to id="nnnnnn" name="nnnnnn"/> <from id="nnnn" name="A Company in Canada"/> <TransactionType>ItemXref</TransactionType> </Header> <Items> <SKU> <SKUID>10050322</SKUID> <UPC>6866261486</UPC> <WIN>30269675</WIN> <StatusCode>A</StatusCode> </SKU> <SKU> ... <snip> ... </SKU> |