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 » Accessing XML attribute

Post new topic  Reply to topic
 Accessing XML attribute « View previous topic :: View next topic » 
Author Message
Shikha Gupta
PostPosted: Tue Sep 07, 2010 11:14 pm    Post subject: Accessing XML attribute Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 27

Hi All
I am trying to access an XML attribute EnableITNControl from this request message

<?xml version="1.0" encoding="UTF-8"?>
<myreq VersionNbr="11" ServiceType="YYYY" MessageType="myreq" Channel="XXX" UserType="Member" Us
" UserPW="XXXXX" HomePlanCd="000" WorkPlanCd="000" ApplicationID = "XX" EnableITNControl = "Y">
<SubNbr>000000</SubNbr>

</myreq>


I need to access this in Filter node, i tried using

RETURN Root.XML.(XML.tag)*[1].(XML.Attribute)EnableITNControl = 'Y'

but its not able to access the element.
Please suggest where I am going wrong in th XPATH expression.
Back to top
View user's profile Send private message Send e-mail
kimbert
PostPosted: Wed Sep 08, 2010 3:57 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I could give you the answer, but I think it will help you more if I give you some information about how to find the answer. I am assuming that you are using the XMLNSC parser.

- Read these topics in the infocenter ( it would be a good idea to bookmark them ):
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ad21074_.htm
http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/topic/com.ibm.etools.mft.doc/ac76040_.htm

- Whenever you have a problem with accessing something in the message tree, you should try a Trace node. Insert a Trace node in your message flow and look at the output. Pay special attention to the field type names - e.g (XMLNSC.Folder)
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 » Accessing XML attribute
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.