From: Jimmy Z. <cra...@co...> - 2007-01-16 17:51:54
|
After parsing, you get a graph similar to a DOM tree that you can navigate using a cursor... if by java objects you are referring to JAXB style of binding, then there got to be schema available... ----- Original Message ----- From: <ma...@sh...> To: <vtd...@li...> Sent: Tuesday, January 16, 2007 6:13 AM Subject: [Vtd-xml-users] Converting data based upon tag attribute names? > I'm new to VTD-XML, and I was wondering if the following wml could be > converted to java objects using this technology: > > <?xml version="1.0" encoding="UTF-8"?> > <response> > <responseHeader> > <status>0</status><QTime>1</QTime> > </responseHeader> > > <result numFound="2" start="0"> > <doc> > <str name="id">MA147LL/A</str> > <str name="name">Apple 60 GB iPod Black</str> > </doc> > <doc> > <str name="id">EN7800GTX/2DHTV/256M</str> > <str name="name">ASUS Extreme N7800GTX</str> > </doc> > </result> > </response> > > Important are the <str name=" tags, as you see I need to map them to > object fields based upon their attribute name, can this be done? > > Grtz > > > ------------------------------------------------------------------------- > 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 > |