Has anyone managed to get XPathAPI to work on the DOM constructed by the
Axis implementation of javax.xml.soap.*? For example, I would expect
that this:

-----
// message/connection stuff omitted
SOAPMessage reply = connection.call(msg, serviceEndpoint);

Element root = reply.getSOAPPart().getDocumentElement();

try {
        NodeList nodeList = XPathAPI.selectNodeList(root,
"//namespace::*");
        System.out.println("Found "+nodeList.getLength()+" namespace
nodes.");
} catch (TransformerException e) {
        e.printStackTrace();
}
-----

should find at least the soap namespace nodes, but it comes up empty.
I've had other problems getting XPathAPI do work with Axis, but I
suspect they are related to this issue with namespace nodes. Does anyone
have any ideas?

Regards,
Scott

Reply via email to