HOW TO READ / PARSE A XML FILE
I am trying to parse an XML - see end of this request for the XML.
There exist an Optional tag <ReferenceDesignators> Item 250-00012 does not have this tag while item 310-00004 does. When I try to extract the infomation the values for 310-00004 are associated with
array index 1 which should be for item 250-00012 - hope this make sense ?
Here is my Peoplecode
Function get_Internet3(&filename)
Local XmlDoc &xmlDoc;
Local array of XmlNode &dataList, &ItemNodeArray, &ItemNodeArray2, &ItemNodeArray3, &ItemNodeArray4, &dataListArray, &dataAttribArray, &DesignatorArray, &BillMaterialArray, &ItemArray;
Local number &I, &I2, &I3, &I4, &J, &J2, &T1, &T2, &T3, &Tcount, &itmecnt, &length, &ii, &iii, &attr, &parentcnt, &childcnt, &subchildcnt, &childitem, &attributeChildCnt, &parentcnt2, &COUNT, &COUNT1, &COUNT2, &COUNT3;