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 » Comparing XML element values

Post new topic  Reply to topic
 Comparing XML element values « View previous topic :: View next topic » 
Author Message
datran
PostPosted: Thu Feb 06, 2003 3:14 pm    Post subject: Comparing XML element values Reply with quote

Newbie

Joined: 14 Jan 2003
Posts: 7
Location: Australia

Hi,

I was wondering could anyone give me a pointer why the following ESQL statment evalutes to FALSE?
IF InputRoot.XML.Envelope.Body.(XML.tag)[1] = 'Person' THEN
SET BooleanValue1 = TRUE;
ELSE
SET BooleanValue1 = FALSE'
END IF;

Could someone post how to check the actual value of the XML tag?


My input XML struture is
<Envelope>
<Body>
<Person>
<Name>JOHN</Name>
</Person>
</Body>
</Envelope>
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Feb 06, 2003 7:43 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Please explain what are you trying to do here? Do you want to check whether Person tag is present in your input message or do you want to check for the tag name, which is the first child of <Body> tag?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
datran
PostPosted: Sun Feb 09, 2003 2:02 pm    Post subject: Reply with quote

Newbie

Joined: 14 Jan 2003
Posts: 7
Location: Australia

Hi I'm trying to check the value of the first tag after <body>

i.e is the first tag name = Person.

Thanks
Back to top
View user's profile Send private message
TonyD
PostPosted: Sun Feb 09, 2003 9:17 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

FIELDNAME(InputRoot.XML.Envelope.Body.(XML.tag)*[1]) should return 'PERSON' if it exists.... maybe you could try your 'IF' statement with an *?
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Comparing XML element values
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.