From: Jimmy Z. <cra...@co...> - 2006-10-26 17:50:18
|
since VTD-XML uses integer to address a VTD record, in cases where the lookup returns nothing, VTDnav returns -1. It is equivalent to NULL in DOM... ----- Original Message ----- From: "John Kraal - Kewill Interchain NL" <jk...@in...> To: <vtd...@li...> Sent: Thursday, October 26, 2006 7:32 AM Subject: [Vtd-xml-users] vtdNav's getText(); > Hello, > > I'm busy recomposing the vtd-xml package for linux and unix with > autotools and strict c-compiler-thingies. It's almost working now, but > I've encountered this and have not yet been able to figure out why this > happens. > > I've got this piece of code (straight from the code sample): > > t = getText(vn); > wprintf(L"t: %d\n", t); > if (t != -1) > { > tmpString = toNormalizedString(vn,t); > wprintf(L" text ==> %ls \n", tmpString); > free(tmpString); > } > > Somehow getText _always_ returns -1; the file is generated by libxml2 > and utf-8 encoded. Could somebody please help me locate or explain this > problem? > > Regards, > > John Kraal > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Vtd-xml-users mailing list > Vtd...@li... > https://lists.sourceforge.net/lists/listinfo/vtd-xml-users > |