Hi I've faced the following problem:
XPath expr = new XPath ("//servlet-mapping/url-pattern[./../servlet-name='DeviceInfoServlet']"); String rez = (String) expr.selectSingleNode (doc); always return null for the following doc: ... <servlet-mapping> <servlet-name>DeviceInfoServlet</servlet-name> <url-pattern>/tools/*</url-pattern> </servlet-mapping> ... But simple ones are working: String b = (String) (new XPath ("//servlet-mapping/url-pattern")).selectSingleNode (doc); And I am sorry to say but Microsoft XML parser does understand the first expression and return the right stuff. Any ideas? Cheers, Andrey _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest