Posted: Fri Oct 31, 2003 11:27 am Post subject: Indexed element with occuring tags
Master
Joined: 21 Nov 2002 Posts: 200
I posted an earlier message and didn't explain it very well. I have a message flow that has input XML that has an element that is indexed twice - (Street). Under each index can be up to 4 tags. I need to determine if any of the incoming tags are missing and if so create an empty output tag. How can I check each tag? For example how can I tell if the Article tag belongs to
<Street index="1"> or <Street index="2"> so that if I need to create an empty output tag, I can create it under the correct Street index?
you can try something like this inside a compute node:
IF InputRoot.XML.Streets.Street[1].Article IS NULL THEN
SET ...
END IF;
Also you can loop through all the indexes for an array.
(see esql manual)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum