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 Tag

Post new topic  Reply to topic
 XML Tag « View previous topic :: View next topic » 
Author Message
dsmq
PostPosted: Thu Aug 22, 2002 1:29 pm    Post subject: XML Tag Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Hi

Is there any way to check the XML Tag from the in coming XML message and then send the tag value to the output message

eg:
<customer>
<givenname>hello</givenname>
</customer>

what i need to do is check for the givenname tag ,if the tag is there then i need to the hello to the output message

Thanks
Back to top
View user's profile Send private message
kirani
PostPosted: Thu Aug 22, 2002 1:59 pm    Post subject: Reply with quote

Jedi Knight

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

You could check for the existance of the tag like this ..
if (InputBody.customer.givenname is not NULL) then
-- <givenname> tag is present in the input message
end if;

What if the tags are like this ..
<givenname/> or <givenname></givenname>
??
_________________
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
wolstek
PostPosted: Fri Aug 23, 2002 12:13 am    Post subject: Reply with quote

Acolyte

Joined: 25 Jun 2001
Posts: 52
Location: Bristol, UK

Hae you considered use of the FIELDNAME function

DECLARE fieldname CHARACTER;
SET fieldname = FIELDNAME(InputBody.customer.*[1]);

I would expect fieldname to then hold the value of "givenname"
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 Tag
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.