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: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Faleh Omar <faleh.o...@g.ho.st> 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: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org