|
From: tony y. <gao...@gm...> - 2006-07-31 14:15:02
|
more comments.....
<root>
<child>
<grandchild1 />
<grandchild2 />
</child>
<child>
<grandchild1 />
<grandchild2 />
</child>
</root>
I insist on the VTD-XML have some features to implement. for the reason
below:
1. When I store all nodes' index, I need create many objects to reference
the indexes, as for the above xml, I need 7 objects to denote the whole tree
structure if you can't provide me round-trip cursor movement. And yes, the
memory usage will significant small than others even though I create the
objects because just 32 bits int spaces and no redundant object created .
But it doesn't make any sense against its initial design concept.
I mean the VTD-XML project must reconsider the structure to support more
flexible cursor-like xml parser. like ResultSet class .
2. Cannot lazy-load the children nodes if xml doc is big enough.
As for DOM implementation, yes they can do all things like that.
--
Kindly Regards
Tony
===============================
|