You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by je...@locus.apache.org on 2000/07/13 20:50:28 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom DocumentImpl.java
jeffreyr 00/07/13 11:50:24
Modified: java/src/org/apache/xerces/dom DocumentImpl.java
Log:
Need to make sure that nodes are fluff up if we are calling clonenode()
Revision Changes Path
1.34 +5 -0 xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java
Index: DocumentImpl.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- DocumentImpl.java 2000/07/07 20:33:07 1.33
+++ DocumentImpl.java 2000/07/13 18:50:21 1.34
@@ -282,6 +282,11 @@
DocumentImpl newdoc = new DocumentImpl();
// then the children by importing them
+
+ if (needsSyncChildren()) {
+ synchronizeChildren();
+ }
+
if (deep) {
for (ChildNode n = firstChild; n != null; n = n.nextSibling) {
newdoc.appendChild(newdoc.importNode(n, true));