DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15263>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15263

The clone element cannot append the new document

           Summary: The clone element cannot append the new document
           Product: Xerces2-J
           Version: 2.2.1
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The clone elemnet from the document cannot append the other document!
example code is following :
     org.w3c.dom.Document doc = db.newDocument();
     org.w3c.dom.Document src = db.parse(sourceFile); ;

     Node anElement = src.getDocumentElement();
     Node cloneElement = anElement.cloneNode(false);
     doc.appendChild(cloneElement);
error is :
Exception in thread "main" org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node
is used in a different document than the one that created it.
        at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source)

        at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to