Posted: Mon Jul 29, 2013 5:41 pm Post subject: Java XPath with namespace
Apprentice
Joined: 10 Jul 2013 Posts: 47
I have the following code in a Java Compute Node.
Code:
MbXPath xp = new MbXPath("in:ParameterList/in:StringParameter");
xp.addNamespacePrefix("in", "http://nsn.com/ossbss/charge.once/wsdl/entity/Tis/xsd/1");
xp.setDefaultNamespace("http://nsn.com/ossbss/charge.once/wsdl/entity/Tis/xsd/1");
List nodeset = (List)message.evaluateXPath(xp);
nodeset is always empty no matter what I specify, "ListParameter/StringParameter" with the namespace and default namespace or not.
or else it needs to start with '//' ( if that's allowed ). _________________ Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
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