Obtaining a static reference to a DOM node

Discussion in 'XML' started by Steve Roberts, Jul 22, 2003.

  1. 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
     
    Steve Roberts, Jul 22, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,652
  2. Replies:
    0
    Views:
    394
  3. Tjerk Wolterink
    Replies:
    2
    Views:
    1,510
    Dimitre Novatchev
    Aug 24, 2006
  4. Daz

    Obtaining the last inserted node.

    Daz, Dec 25, 2006, in forum: Javascript
    Replies:
    2
    Views:
    100
  5. Terry
    Replies:
    2
    Views:
    84
    Thomas 'PointedEars' Lahn
    Sep 5, 2007
Loading...

Share This Page