i'm having some trouble with the Node.matches method. here is a simple
test program that illustrates the problem:
import org.dom4j.*;
public class foo {
public static void main(String argv[]) throws Exception {
Document document =
DocumentHelper.parseText("<html><head><title>foo</title></head><body>foobar</body></html>");
if (document.matches("/html/head/title")) {
System.out.println("matches");
} else {
System.out.println("doesn't match");
}
}
}
the matches call returns false, even though the xpath expression
evaluates to true (that is to say, xsl:if test on that expression
returns true). is this a bug or a feature?
- donald
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user