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 » still cant search thru the xml message!!!

Post new topic  Reply to topic
 still cant search thru the xml message!!! « View previous topic :: View next topic » 
Author Message
rajaram
PostPosted: Wed Mar 24, 2004 2:32 am    Post subject: still cant search thru the xml message!!! Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

hi frnds,
I still cant parse thru xml message.Lemme rephrase the quesiton for u guys.

<top level>
<class id=1>
<at id="222">
<text id= "456">Hello World</text>
</at>
</class>
<class id = 2>
<at id ="123">
<text id= "789">Hi </text>
</at>
</class>
<class id=3>
.
.
.
.
.
</top level>


I need to search for the <text> and not the attribute of <text>...based on the value of attribute 'id' of 'at'..ie


if "inputbody"."toplevel"."class"[].at.(XML.Attribute)id = '123' then
set output.mrm.aaa = at.text
end if




Now the problem is i need to search for this in every class without using a while loop.
How do i do that??
Back to top
View user's profile Send private message
Missam
PostPosted: Wed Mar 24, 2004 6:03 am    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Quote:
if "inputbody"."toplevel"."class[].at.(XML.Attribute)id = '123'
.
you can't use open list operator like this in if statement.

Quote:
set output.mrm.aaa = at.text

the correlation name output is not valid.there is no semicolon at the end of statement

Quote:
end if

missing semicolon at the end

do you still want this code to work for you.

if you have more than one <class> in your message and you want to check a condition using if statement,you need to loop through every <class>
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 » still cant search thru the xml message!!!
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.