You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Boris Garbuzov <bo...@borealissoft.com> on 2001/05/05 20:13:59 UTC

failure to append

What is a possible reason of the following failure to append one element
to another? The way they were created?

------------------ code -------------------------
      element1.appendChild (element2);
------------stack trace------------------------

            Exception in thread "main" org.w3c.dom.DOMException: DOM005
Wrong document
            at
org.apache.xerces.dom.ParentNode.internalInsertBefore(ParentNode.java:390,
Compiled Code)
            at
org.apache.xerces.dom.ParentNode.insertBefore(ParentNode.java:322,
Compiled Code)
            at
org.apache.xerces.dom.NodeImpl.appendChild(NodeImpl.java:216, Compiled
Code)
            at wasp.XmlCassFile.append(XmlCassFile.java:304, Compiled
Code)
            at wasp.test.XmlCassFileBasic.main(XmlCassFileBasic.java:46)