From: jimmy Z. <cra...@co...> - 2008-08-27 02:09:15
|
Hi, Ale, I think the easiest way is to use XPath... the text() expression will allow you to get those nodes... the other option is via "textIter" class,, which has a iterate method that allows you to deal with mix-context type of document... Jimmy ----- Original Message ----- From: "Alessandro Caproni" <aca...@es...> To: <vtd...@li...> Sent: Tuesday, August 26, 2008 8:20 AM Subject: [Vtd-xml-developers] Problem getting a value > Hi, > I am parsing the following: > > <MainTag Time="2006-03-28T00:26:29.239"> > <Data Name="Pippo"><![CDATA[Pluto]]></Data> > <![CDATA[Thread name: 'Test']]> > </MainTag> > > The body of the is mixed i.e. Data can be placed before of after the body. > When Data is in the last position I have no problem but when the body is > in > the last position, like in the example upon, I do not know how to get its > value i.e. how to navigate there. > > Could any of you suggest me how to get the string "Thread name: 'Test'"? > > Till now I have unseccessfully tried several combination of > VTDNav->toElement(...). > > Thank you, > Ale > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Vtd-xml-developers mailing list > Vtd...@li... > https://lists.sourceforge.net/lists/listinfo/vtd-xml-developers > |