Author: mrglavas
Date: Thu Oct 20 20:29:39 2005
New Revision: 327081
URL: http://svn.apache.org/viewcvs?rev=327081&view=rev
Log:
Fixing JIRA Issue #1106:
http://issues.apache.org/jira/browse/XERCESJ-1106
Before adopting a node from a deferred DOM to a non-deferred DOM
we first undefer the children of the node. We accomplish this by
doing a non-recursive walk over the child/sibling chains but missed
synchronizing attribute nodes since they are not children of elements.
Should be fixed now.
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java
URL:
http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java?rev=327081&r1=327080&r2=327081&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/CoreDocumentImpl.java Thu Oct
20 20:29:39 2005
@@ -1903,6 +1903,14 @@
((NodeImpl)node).synchronizeData();
}
+ NamedNodeMap attributes = node.getAttributes();
+ if (attributes != null) {
+ int length = attributes.getLength();
+ for (int i = 0; i < length; ++i) {
+ undeferChildren(attributes.item(i));
+ }
+ }
+
Node nextNode = null;
nextNode = node.getFirstChild();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]