Hi; Ok, I see the problem now. Here's the javadoc:
selectNodes public List selectNodes(String xpathExpression)selectNodes evaluates an XPath expression and returns the result as a List of Node instances or String instances depending on the XPath expression. Parameters: xpathExpression - is the XPath expression to be evaluated Returns: the list of Node or String instances depending on the XPath expression But it is returning a Double. My code was dying on the class cast exception (sorry - I assumed it was an exception thrown from inside next()). But this does not match the javadocs. So is the documentation incorrect - or is it how it operates? thanks - dave ----- Original Message ----- From: "Alessandro Vernet" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, December 10, 2003 9:14 PM Subject: [dom4j-user] Re: [dom4j-dev] Major bug > [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 > ------------------------------------------------------- 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