A completely portable, low-tech, arms-length solution would be to construct the document, then traverse it to construct one or both of the Maps, Node->Id and Id->Node, assigning the Id as you go.
Each modification of the document thereafter could traverse the affected subtree and add to the maps, first checking each node in the Node->Id map to see if had already been encountered. Jeff ----- Original Message ----- From: "Martin Bernauer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 28, 2003 5:09 AM Subject: Node identifier Hello all, my application is in need of a document-wide unique node-id for every node in a DOM tree. These ids should be persistent, i.e., uniquely exist as long as the document existst and not as long as the identified node exists. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
