Posted: Thu Feb 06, 2003 3:14 pm Post subject: Comparing XML element values
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>
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
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