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 » General Discussion » Retrieving values of XML attributes within ESQL

Post new topic  Reply to topic
 Retrieving values of XML attributes within ESQL « View previous topic :: View next topic » 
Author Message
emqueuer
PostPosted: Thu Jun 21, 2007 7:27 am    Post subject: Retrieving values of XML attributes within ESQL Reply with quote

Novice

Joined: 21 Jun 2007
Posts: 24

Hello,

I have an XML input message and and am pulling out various data for later use.

My question is if FIELDNAME is used to retrieve the field name from an XML message how can I reference an Attribute value?

eg how do retrieve the value of "To" from the following?

<Test>
<MapData To="A">
<From>B</From>
<From>C</From>
</MapData>
</Test>

I've declared 'cursor' as a REFERENCE TO InputRoot.XMLNSC.Test so that FIELDNAME(cursor[1]) should provide 'MapData'

The documentation doesn't seem to provide the answer.

Many thanks
Daniel
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 21, 2007 7:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac26040_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
emqueuer
PostPosted: Thu Jun 21, 2007 8:29 am    Post subject: Reply with quote

Novice

Joined: 21 Jun 2007
Posts: 24

Thank you.
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 » General Discussion » Retrieving values of XML attributes within ESQL
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.