From: Mark S. <ma...@Sc...> - 2007-01-05 21:26:52
|
Hello, There is a bug in 1.8 and 1.9. When you call toString() on element text that has an entity it will fail. It works fine in 1.6. F.E.: <root> <test>one & two</test> </root> you can not get the index of test's TEXT and call toString(). Code snippet: vn.toElement(VTDNav.ROOT); if (vn == null) vn = vg.getNav(); boolean result = vn.toElement(VTDNav.FC,"test"); if (!result) return null; int index = vn.getText(); if (index < 0) return null; return vn.toString(index); // fails. com.ximpleware.NavException: Invalid entity char at com.ximpleware.VTDNav.getCharResolved(VTDNav.java:723) at com.ximpleware.VTDNav.toString(VTDNav.java:3499) at com.ximpleware.VTDNav.toString(VTDNav.java:3490) ... I just tried to upgrade to 1.8 and 1.9 today from 1.6 and ran into this. I'm starting to heavily rely on XPath and would like to use 1.9. The latest benchmarks look amazing. Cheers. -- http://www.ScheduleWorld.com/ Free Google Calendar synchronization with Outlook, Evolution, cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. |
From: Jimmy Z. <cra...@co...> - 2007-01-06 04:37:17
|
Marc, that problem has now been fixed and checked into CVS... and will be released in 2.0... It is a bug in VTDNav's getCharResolved() method. (1.7 had a rewrite of the method to make it modular, this bug was introduced at that time frame). Thanks for pointing that out... Best, Jimmy ----- Original Message ----- From: "Mark Swanson" <ma...@Sc...> To: <vtd...@li...> Sent: Friday, January 05, 2007 1:26 PM Subject: [Vtd-xml-users] BUG: entity problem in toString() > Hello, > > There is a bug in 1.8 and 1.9. When you call toString() on element text > that has an entity it will fail. It works fine in 1.6. F.E.: > > <root> > <test>one & two</test> > </root> > > you can not get the index of test's TEXT and call toString(). > > Code snippet: > vn.toElement(VTDNav.ROOT); > if (vn == null) > vn = vg.getNav(); > boolean result = vn.toElement(VTDNav.FC,"test"); > if (!result) > return null; > > int index = vn.getText(); > if (index < 0) > return null; > return vn.toString(index); // fails. > > com.ximpleware.NavException: Invalid entity char > at com.ximpleware.VTDNav.getCharResolved(VTDNav.java:723) > at com.ximpleware.VTDNav.toString(VTDNav.java:3499) > at com.ximpleware.VTDNav.toString(VTDNav.java:3490) > ... > > I just tried to upgrade to 1.8 and 1.9 today from 1.6 and ran into this. > I'm starting to heavily rely on XPath and would like to use 1.9. The > latest benchmarks look amazing. > > Cheers. > > -- > http://www.ScheduleWorld.com/ > Free Google Calendar synchronization with Outlook, Evolution, > cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, > Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! > WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Vtd-xml-users mailing list > Vtd...@li... > https://lists.sourceforge.net/lists/listinfo/vtd-xml-users > |
From: Jimmy Z. <cra...@co...> - 2007-01-06 18:13:27
|
Mark, all XPath changes since 1.6 are to make the implemenation faster and more complete... Version 2.0 should come out around the beginning of the next monday... VTD+XML is the big feature so we want to test everything and benchmark it extensively... Jimmy ----- Original Message ----- From: "Mark Swanson" <ma...@Sc...> To: "Jimmy Zhang" <cra...@co...> Sent: Saturday, January 06, 2007 9:55 AM Subject: Re: [Vtd-xml-users] BUG: entity problem in toString() > Jimmy Zhang wrote: >> Marc, that problem has now been fixed and checked into CVS... >> and will be released in 2.0... >> It is a bug in VTDNav's getCharResolved() method. (1.7 had >> a rewrite of the method to make it modular, this bug was introduced >> at that time frame). >> Thanks for pointing that out... > > ymwc. > > So... when's 2.0 coming out :_) > > I ask because I'm starting to use XPath heavily and with all the XPath > changes since 1.6 ... or were all of the XPath changes simply > performance improvements? > > Cheers. > > > > -- > http://www.ScheduleWorld.com/ > Free Google Calendar synchronization with Outlook, Evolution, > cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, > Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! > WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. |
From: Mark S. <ma...@Sc...> - 2007-01-06 18:37:36
|
Jimmy Zhang wrote: > Mark, all XPath changes since 1.6 are to make the implemenation faster > and more complete... Version 2.0 should come out around the beginning of > the next monday... > VTD+XML is the big feature so we want to test everything and benchmark > it extensively... Got it. Btw, I haven't had a single problem with 1.6. Cheers. -- http://www.ScheduleWorld.com/ Free Google Calendar synchronization with Outlook, Evolution, cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. |
From: Jimmy Z. <cra...@co...> - 2007-01-07 08:53:27
|
a typo: 2.0 is due next month, not next monday... ----- Original Message ----- From: "Mark Swanson" <ma...@Sc...> To: "Jimmy Zhang" <cra...@co...> Cc: <vtd...@li...> Sent: Saturday, January 06, 2007 10:37 AM Subject: Re: [Vtd-xml-users] BUG: entity problem in toString() > Jimmy Zhang wrote: >> Mark, all XPath changes since 1.6 are to make the implemenation faster >> and more complete... Version 2.0 should come out around the beginning of >> the next monday... >> VTD+XML is the big feature so we want to test everything and benchmark >> it extensively... > > Got it. > Btw, I haven't had a single problem with 1.6. > > Cheers. > > -- > http://www.ScheduleWorld.com/ > Free Google Calendar synchronization with Outlook, Evolution, > cell phones, BlackBerry, PalmOS, Exchange, Mozilla, Thunderbird, > Pocket PC/Windows Mobile. Also sync tasks, notes and contacts! > WebDAV, vfreebusy, RSS, LDAP, iCalendar, iTIP, iMIP support. > |