I thought so to. But selectNodes() will return an iterator when given a select, the iterator will return true for hasNext(), but it throws an exception on the first call to next().
- dave ---------- Original Message ---------------------------------- From: "David Hooker" <[EMAIL PROTECTED]> Date: Wed, 10 Dec 2003 09:42:51 -0600 >I'm confused. I thought that selectNodes only accepts XPath. > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of David >Thielen >Sent: Tuesday, December 09, 2003 10:47 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: [dom4j-dev] Major bug > > >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. > >Any idea how to test for this? > >thanks - dave > >ps - I know this is sql and not xpath - but I have a program where I can >get both sql and xml so I try the xml first and if it fails I try the >sql. > > > ------------------------------------------------------- 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-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-dev