PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

HOW TO READ / PARSE A XML FILE

edited Nov 20, 2013 10:17AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 2 commentsAnswered
Hello Folks - could use your help here,

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;

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center