[Replying in dom4j-user only. Let's try to keep cross-posting to the minimum guys.]

David Thielen wrote:

> Hi;
>
> If I call Node.selectNodes("select * from demo where demoId = 6"),
> it will return an iterator the returns true for hasNext(). But when
> you call next() it throws an exception.

David,

This might be more of a Jaxen issue. But can you send us some source code to reproduce this? I can write this:

Document document = DocumentHelper.parseText("<root/>");
List nodes = document.selectNodes
    ("select * from demo where demoId = 6");
Iterator i = nodes.iterator();

This works fine and returns a list with one element (a NaN, as it evaluates "select * from", trying to multiply the text value of the "select" element with the text value of the "from" element).

Alex




------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to