AnsweredAssumed Answered

XML Data finding

Question asked by Srinivas Chandrakanth Vangari on May 16, 2016
Latest reply on May 25, 2016 by Srinivas Chandrakanth Vangari

<Root> <Element SequenceNumber="1" attribute1="1" attribute2="2" attribute3="3"></Element> <Element SequenceNumber="2" attribute1="1" attribute2="2" attribute3="3"></Element> <Element SequenceNumber="3" attribute1="1" attribute2="2" attribute3="3"></Element> <Element SequenceNumber="4" attribute1="1" attribute2="2" attribute3="3"></Element> ... ... ... </Root> 

 

Root Tag has MaxOccurs=1 Element Tag has MaxOccurs=Unbounded. 

 

If I need only the attribute values of Element tag whose sequence number is 3and assign them to document property, how could I achieve that from a map function? My Observation: I used a map function and wrote a JS i.e simple if check, but finally the values to the properties are overridden with the last element tag.

Outcomes