[ http://issues.apache.org/jira/browse/AXIS-2093?page=comments#action_12315328 ]
Venkat Reddy commented on AXIS-2093: ------------------------------------ yes dims. i could reproduce the problem using an existing test case. Seems that the XPathAPI.getNodeList call is not even entering any MessageElement methods. That seems strange. This also happens also while seearching for attribute nodes - (//attribute::*). However it does enter MessageElement if the XPath expression looks for child nodes. I also tried replacing DocumentElement with SOAPEnvelope as root node for search. Still looking into the issue. -venkat > XPathAPI cannot find namespace nodes in Axis dom > ------------------------------------------------ > > Key: AXIS-2093 > URL: http://issues.apache.org/jira/browse/AXIS-2093 > Project: Apache Axis > Type: Bug > Versions: 1.2.1 > Environment: Xerces 2.6.2, Xalan 2.6.0, Websphere v5.1 JRE > Reporter: Scott Parnell > > XPathAPI is unable to locate any namespace nodes in the DOM representing a > SOAPEnvelope when used like 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(); > } > Serializing the SOAPPart using Xalan to do an identity transform results in: > <?xml version="1.0" encoding="UTF-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> > <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/> > <soap:Body> > <SomeElement xmlns="http://my.namespace.uri/"> > . > . > . > </SomeElement> > </soap:Body> > </soap:Envelope> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
