[Zope] ID's in one XML Document nt unique?

Martijn Faassen m.faassen@vet.uu.nl
Mon, 06 Sep 1999 11:03:28 +0200


Stephan Richter wrote:
> 
> hello amos,
> 
> since you are the creator of XML documents, I wanted to ask you whether the
> node IDs in the XML document tree are not necessarily unique. I have a XML
> document  and I try to create an index. I planned of using the node IDs from
> the tree as my identifiers. But I noticed that I have an ID twice. Yes, it is
> at a different level of the tree.
> 
> Is this a bug? Is there another way to accomplish my task?

Odd -- I haven't encountered this yet in my documents. All ids are
unique there and I'm depending on it. Also I know from the code that
they're supposed to be unique..

What *is* a problem currently (I think) is that you can't copy a branch
from one XML document into another with the DOM methods. (the DOM
doesn't provide for this) So there you can run into unique ID problems.

Regards,
Martijn