|
From: Tatu S. <cow...@ya...> - 2006-07-31 02:43:04
|
--- tony yin <gao...@gm...> wrote: > Well. For example: > <root> > <child>AAA</child> > <child>BBB</child> > <child>CCC</child> > ... > </root> > When processing XML doc in DOM I can reserve every > node references in my > code and exactly retrieve the 2nd "<child>" node > back at anytime I wanted, > there is no need to traverse. That's the point I But VTD-XML uses a simple integer index to refer to all pieces (tokens, similar to nodes, except bit more fine-grained, and bound to physical syntactic components of xml document) of the document. So you'll just need to store these indexes, just like you would Dom Nodes. And that index then needs to given as argument, either directly to methods, or to 'traverse' global pointer (can't remember if VTD-XML had both types of methods). Does this make sense? -+ Tatu +- __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |