RE: [xml-dev] So maybe ID isn't a problem after all.

From
Bullard, Claude L (Len) <>
To
"Champion, Mike" <>,
Date
2001-11-12T14:10:19Z
ID
<2C61CCE8A870D211A523080009B94E4306A0C67D@HQ5>
Thread
RE: [xml-dev] So maybe ID isn't a problem after all.
If there is no reliable way to ensure an ID is there, 
that function call is marginalized.  You need a 
getElementByName(name).

len

-----Original Message-----
From: Champion, Mike [mailto:]

I'd like to use getElementById() in well-formed XML, or when processing
instances of a DTD I don't control but for which I "know" that a certain
attribute has unique values.  If I could easily slip in an id-ness
declaration out of band somehow, the DOM implementation will do a fair
amount of work for me that is tedious to do by hand. I'm not a heavy user of
XSLT, but I suspect that a similar use case exists for the id() function.