Hi there,
I am using dom4j version 1.4.

I have started using dom4j just recently. I am facing problems
getting DocumentHelper.selectNodes(xpathString, documentObject)
to give me the reqd. list of Nodes. But the problem is only with
xml files which are based on schema(.xsd).

Did anyone else face problems with getting xpaths on xmls based
schema? If so, how to resolve this?

Another problem I am facing is that associating ElementHandler
to a SAXReader is not working either. I use it as it has been
mentioned in the FAQ. i.e.:
 SAXReader reader = new SAXReader();
 reader.addHandler(xpathString, new ElementHandler() {
   public void onStart(ElementPath path) {
    ///so on....
.....
The above is failing to generate the onStart/onEnd events.
What additional needs to be done?

Thanks for any halp,
Gurdev

Reply via email to