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 » XML Structure.

Post new topic  Reply to topic
 XML Structure. « View previous topic :: View next topic » 
Author Message
venky
PostPosted: Fri May 07, 2004 7:52 am    Post subject: XML Structure. Reply with quote

Master

Joined: 08 Jul 2003
Posts: 205

Hello All,

I have an XML File which looks like.

<Test>
<value>val1</value>
</Test>
<Test>
<value>val2</value>
</Test>
<Test>
<value>val3</value>
</Test>

Can I referenct the third Tag with the following ESQL, without a while loop?

SET OutputRoot.XML.Temp.val1 = InputRoot.XML.Test[3].value;

If anyone has tried this please reply.

Thanks,
Venky
--
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri May 07, 2004 7:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

What happens when you try it?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Missam
PostPosted: Fri May 07, 2004 9:22 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

First of every thing your XML message is not a Valid XML.valid XML should have one and only one root element.

<Msg>
<Test>
<value>val1</value>
</Test>
<Test>
<value>val2</value>
</Test>
<Test>
<value>val3</value>
</Test>
</Msg>

If your XML message is some thing like above you can aceess that using

SET OutputRoot.XML.Temp.val1 = InputRoot.XML.Msg.Test[3].value;
Back to top
View user's profile Send private message
venky
PostPosted: Fri May 07, 2004 10:57 am    Post subject: Reply with quote

Master

Joined: 08 Jul 2003
Posts: 205

Hello Missam and Jeff,

Thank you for your help.
I ran the same and got good results.

( of course I included the root tag for XML )

Thanks,
venky
--
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 » XML 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.