Dims,
One of our dirty little secrets :.
Unfortunately the DOM API (regardless of level) has no way of
registering that an attribute is of Type ID (except during parse with a
DTD or schema). Level 2 and above have ways of finding (getElementById)
and checking (isId), but no way of setting,
that's exactly what they do in Xerces as well :)
http://cvs.apache.org/viewcvs.cgi/xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java?annotate=1.62
-- dims
--- Berin Lautenbach [EMAIL PROTECTED] wrote:
Dims,
One of our dirty little secrets :.
Unfortunately the DOM API
Unfortunately the DOM API (regardless of level) has no way of
registering that an attribute is of Type ID (except during parse with a
DTD or schema). Level 2 and above have ways of finding (getElementById)
and checking (isId), but no way of setting, other than at parse time.
DOM3 does.