I`m using commons-jxpath-1.2 and I have two JXPathContext:
JXPathContext context = JXPathContext.newContext(this);
context.registerNamespace("exa", "http://www.example.com/example");
JXPathContext context2 = JXPathContext.newContext(context, this);
context2.getValue($root/exa:example");
This sentence doesn´t work. I have to declare prefix "exa":
context2.registerNamespace("exa", "http://www.example.com/example");
This behaviour is correct?
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
|