mrglavas 2004/11/04 12:08:55 Modified: java/src/org/apache/xerces/dom AttrImpl.java Log: DOM Level 3 specifies an attribute called strictErrorChecking [1] which when set to false allows an implementation to not test every possible error case. Reducing the amount of checking performed when strictErrorChecking is false. This patch is thanks to Naela Nissar. [1] http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#Document3-strictErrorChecking Revision Changes Path 1.62 +5 -3 xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java Index: AttrImpl.java =================================================================== RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttrImpl.java,v retrieving revision 1.61 retrieving revision 1.62 diff -u -r1.61 -r1.62 --- AttrImpl.java 14 Oct 2004 03:49:33 -0000 1.61 +++ AttrImpl.java 4 Nov 2004 20:08:55 -0000 1.62 @@ -337,11 +337,13 @@ */ public void setValue(String newvalue) { - if (isReadOnly()) { + CoreDocumentImpl ownerDocument = ownerDocument(); + + if (ownerDocument.errorChecking && isReadOnly()) { String msg = DOMMessageFormatter.formatMessage(DOMMessageFormatter.DOM_DOMAIN, "NO_MODIFICATION_ALLOWED_ERR", null); throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, msg); } - CoreDocumentImpl ownerDocument = ownerDocument(); + Element ownerElement = getOwnerElement(); String oldvalue = ""; if (needsSyncData()) {
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]