Rob Prime wrote:And unlike the name XPathConstants.NODESET implies, it returns a NodeList, not a NodeSet.
Thanks, I resolved it, I switched to (JDom + XPath). I don't understand why Sun JDK XPath is so hard and difficult to use.
Another question is, if we just want to extract a portion of XML, like my case, and I need to read, modify, delete one node, which API wil be better for this ?
Thanks.