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 » XPath with // not working on WMB 8

Post new topic  Reply to topic
 XPath with // not working on WMB 8 « View previous topic :: View next topic » 
Author Message
master_jack
PostPosted: Mon Jul 23, 2012 6:57 am    Post subject: XPath with // not working on WMB 8 Reply with quote

Newbie

Joined: 22 May 2012
Posts: 4

Hi,

When I try to access the XPATH expressions starting with '//' in a Java Compute Node its not returning me anything.


Code:

MbElement rfh2Element = getMQRFH2Part();
      
MbXPath operpath = new MbXPath("usr/poc/operation");
MbXPath valuePath = new MbXPath("usr//value");
MbXPath path = new MbXPath("//path");

rfh2UserElement.evaluateXPath(operpath); //returns a list
rfh2UserElement.evaluateXPath(valuePath); // returns a list
rfh2UserElement.evaluateXPath(path); // returns an empty list
rfh2UserElement.evaluateXPath("//value"); // returns an empty list


My Input RFH2 header(usr folder) looks like following

Code:

<poc>
<operation>update</operation>
<value>George</value>
<path>//contact[@type='office']</path>
<test><value>jony</value></test>
</poc>


Please provide your inputs.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jul 23, 2012 12:35 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Put a Trace node in just before the JCN. Trace ${Root} to see how the tree is coming.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
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 » XPath with // not working on WMB 8
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.