You can create your own ID attributes which will work with getElementById.
See all the setIdAttribute*() methods [1] on the Element interface.
[1]
http://xerces.apache.org/xerces2-j/javadocs/api/org/w3c/dom/Element.html#setIdAttributeNS(java.lang.String,%20java.lang.String,%20boolean)
Michael Gl
Hi all,
I'm generating an XML DOM object in memory without reading XML from any source.
The XML document structure is very flexible that it can't be described using a
schema or a dtd.
Still I want to make use of getElementById. But the method always returns null.
ANY IDEAS!
-