venu 2004/03/16 22:16:54 Modified: java/src/org/apache/xerces/dom CoreDocumentImpl.java Log: check made if errorChecking is enabled. Revision Changes Path 1.70 +3 -3 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.69 retrieving revision 1.70 diff -u -r1.69 -r1.70 --- CoreDocumentImpl.java 11 Mar 2004 22:19:53 -0000 1.69 +++ CoreDocumentImpl.java 17 Mar 2004 06:16:54 -0000 1.70 @@ -435,12 +435,12 @@ ((DocumentTypeImpl) newChild).ownerDocument = this; } - if ((docType != null && + if (errorChecking &&((docType != null && oldChild.getNodeType() != Node.DOCUMENT_TYPE_NODE && newChild.getNodeType() == Node.DOCUMENT_TYPE_NODE) || (docElement != null && oldChild.getNodeType() != Node.ELEMENT_NODE && - newChild.getNodeType() == Node.ELEMENT_NODE)) { + newChild.getNodeType() == Node.ELEMENT_NODE))) { throw new DOMException( DOMException.HIERARCHY_REQUEST_ERR,
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]