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 Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected] Faleh Omar <[email protected]> wrote on 03/05/2009 04:43:09 AM: > 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! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
