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 » different xml parent tags but same xml children structure

Post new topic  Reply to topic
 different xml parent tags but same xml children structure « View previous topic :: View next topic » 
Author Message
jillsam
PostPosted: Fri Mar 03, 2006 2:24 pm    Post subject: different xml parent tags but same xml children structure Reply with quote

Newbie

Joined: 27 Jun 2002
Posts: 7

Using WBI Message Broker V5, is it possible to have one compute node to handle two different types of xml parent tags with same xml children structure?

Input message examples:

Message type 1
<Abc>
<date>20060303</date>
<Name>Bart Simpson</Name>
<Address>123 Market Street</Address>
</Abc>

Message type 2
<Xyz>
<date>0303</date>
<Name>Bart</Name>
<Address>123 Market Street</Address>
</Xyz>


Anyone has an idea? Do you think declare reference to InputRoot.XML would help? If so, May I know how? Thank you very much in advance.
_________________
http://www.materialsforum.net
Back to top
View user's profile Send private message Visit poster's website
kspranava
PostPosted: Fri Mar 03, 2006 3:05 pm    Post subject: Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi,

Try InputRoot.XML.(XML.Element).yourtags

-kspranava
Back to top
View user's profile Send private message
vk
PostPosted: Fri Mar 03, 2006 6:46 pm    Post subject: Reply with quote

Partisan

Joined: 20 Sep 2005
Posts: 302
Location: Houston

Try the following code -

SET rRoot REFERENCE TO InputRoot.XML;

MOVE rRoot FIRSTCHILD;

Then you can access the inner children as rRoot.Date, rRoot.Name and rRoot.Address

Regards,
VK.
Back to top
View user's profile Send private message
jillsam
PostPosted: Sat Mar 04, 2006 3:46 pm    Post subject: Reply with quote

Newbie

Joined: 27 Jun 2002
Posts: 7

Quote:
InputRoot.XML.(XML.Element).yourtags


That works. I may try vk's method.

Cool
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » different xml parent tags but same xml children structure
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.