mrglavas 2003/11/01 10:55:27 Modified: java/src/org/apache/xerces/dom CoreDocumentImpl.java Log: Fixing Bug #21568. Patch submitted by Peter McCracken. Document.getOwnerDocument() always returns null. Compare node against 'this' instead. Revision Changes Path 1.49 +2 -2 xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java Index: CoreDocumentImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/CoreDocumentImpl.java,v retrieving revision 1.48 retrieving revision 1.49 diff -u -r1.48 -r1.49 --- CoreDocumentImpl.java 31 Oct 2003 11:39:33 -0000 1.48 +++ CoreDocumentImpl.java 1 Nov 2003 18:55:27 -0000 1.49 @@ -1171,7 +1171,7 @@ public String saveXML(Node node) throws DOMException { if ( node != null && - getOwnerDocument() != node.getOwnerDocument() ) { + this != node.getOwnerDocument() ) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "WRONG_DOCUMENT_ERR", null); throw new DOMException(DOMException.WRONG_DOCUMENT_ERR, msg); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]