ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Indexed element with occuring tags

Post new topic  Reply to topic
 Indexed element with occuring tags « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Fri Oct 31, 2003 11:27 am    Post subject: Indexed element with occuring tags Reply with quote

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?

Thanks for any help that can be provided!!!

Here is the input XML:

<Streets>
<Street index="1">
<Article>N</Article>
<Direction>NE</Direction>
<Type>AV</Type>
<Name>F 301 N PULASKI ST</Name>
</Street>
<Street index="2">
<Article>N</Article>
<Direction>NE</Direction>
<Type>AV</Type>
<Name>F 301 N PULASKI ST</Name>
</Street>
</Streets>
Back to top
View user's profile Send private message
dsim
PostPosted: Fri Oct 31, 2003 9:14 pm    Post subject: Reply with quote

Acolyte

Joined: 11 Aug 2003
Posts: 67
Location: Toronto

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)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Indexed element with occuring tags
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.