|
From: Jimmy Z. <cra...@co...> - 2006-07-30 07:33:58
|
There is a global stack that you can access. Since it is a stack it is =
first-in last out,
so you can push in a node then pop it back out...
vn.push(); // save the location
....// do what ever you want, such as navigation
vn.pop(); // instantly restore cursor to the saved location...
Have you tried the demo on the sourceforge web page? it seems to do what =
you have described ...
----- Original Message -----=20
From: tony yin=20
To: vtd...@li...=20
Cc: vtd...@li...=20
Sent: Sunday, July 30, 2006 12:15 AM
Subject: Re: [Vtd-xml-users] Need more arbitrary random access
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 want to be done =
in VTD-XML Model if I can save the 2nd "<child>" token's index in my =
code. The necessary situation is, I generate a tree in my UI from an XML =
and I want mouse click linking to correct node and display information =
of that node.=20
Sounds reasonable?
--=20
Kindly Regards
Tony
=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=20
-------------------------------------------------------------------------=
-----
=
-------------------------------------------------------------------------=
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=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
-------------------------------------------------------------------------=
-----
_______________________________________________
Vtd-xml-users mailing list
Vtd...@li...
https://lists.sourceforge.net/lists/listinfo/vtd-xml-users
|