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
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 );