Re: [dom4j-user] Xpath issue with Dom4j

2005-01-20 Thread Edwin Dankert
This is again the dreaded default namespace problem. The XPath expression //resource searches for all elements that are not in a namespace and are named 'resource'. In this case the //resource elements are in the 'http://www.imsglobal.org/xsd/imscp_v1p1' namespace. XPath however does not allow u

[dom4j-user] Xpath issue with Dom4j

2005-01-20 Thread Aneesh Nair
Hi Why his don't works? executeXPath( document, "//resource" ); public static List executeXPath(Node document, String xpathQuery) { System.out.println( "xpathQuery=" + xpathQuery ); XPath xpathSelector = DocumentHelper.createXPath( xpathQuery );