Hi all,

I have a document node which I apply an XPath to which results in a node 
set. After that, I want to apply an XPath that takes a nodeset and returns 
a String. How can I do that in two separate steps?

Instead of  applying "string(.//. | .//@* | .//namespace::*)" to the doc 
like in

XObject resultString = XPathAPI.eval(doc, "string(.//. | .//@* | 
.//namespace::*)");
System.out.println(resultString).str();

,I want to do something like

NodeList nodes = XPathAPI.selectNodeList(doc, "(.//. | .//@* | 
.//namespace::*)");
and now something I don't know with
String result = XPATHMAGIC.apply(nodes, "string()");

How can I do that?

Christian

Reply via email to