Obtaining a static reference to a DOM node

S

Steve Roberts

I want to write a graphical view of an XML tree, using a DOM interface, that
allows the XML tree to be edited, with nodes being added or removed.
For this I was going to create a basic tree structure, mirroring the
structure held in the DOM. Every node of the new tree would reference a
matching DOM node. However, I'm not familiar enough with the DOM to know if
it's possible to uniquely identify every DOM node, in such a manner that the
reference to the DOM node will remain intact even after new nodes have been
added into the DOM.

Does anyone know if this is possible ?
Does DOM label its nodes with a unique ID value ?

For reference, I'm itending to use the Xerces C++ DOM parser.

Any help much appreciated.

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top