Posted: Mon Jul 23, 2012 6:57 am Post subject: XPath with // not working on WMB 8
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
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
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