Re: [dom4j-user] bug in xpath

2004-08-16 Thread literakl
> I'm not sure what to think of this issue. The thing is that you are > trying to run an xpath-expression on an invalid XML document (valid XML > documents must have a root element!). I believe that an exception should > be thrown if you try to select nodes using xpath on such documents (but >

Re: [dom4j-user] bug in xpath

2004-08-16 Thread Maarten Coene
Hi, I'm not sure what to think of this issue. The thing is that you are trying to run an xpath-expression on an invalid XML document (valid XML documents must have a root element!). I believe that an exception should be thrown if you try to select nodes using xpath on such documents (but not a

[dom4j-user] bug in xpath

2004-08-13 Thread literakl
Hi, I upgraded to RC1 but I had to revert back to previous final version, because there were issues with selectNode (jaxen respectively). I think the issue is following: Document doc = DocumentHelper.createDocument(); Node node = doc.selectSingleNode("/data"); (simplified, selectSingleNode is