xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amass...@apache.org
Subject svn commit: r655561 - /xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp
Date Mon, 12 May 2008 17:02:00 GMT
Author: amassari
Date: Mon May 12 10:02:00 2008
New Revision: 655561

URL: http://svn.apache.org/viewvc?rev=655561&view=rev
Log:
When importing a DOMDocumentFragment, be sure to call the insertBefore function using the
virtaul table, or derived classes will not be notified of each added node (i.e. DOMDocument
will not store the pointer to the root element)

Modified:
    xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp

Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp?rev=655561&r1=655560&r2=655561&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMParentNode.cpp Mon May 12 10:02:00 2008
@@ -198,7 +198,7 @@
               throw DOMException(DOMException::HIERARCHY_REQUEST_ERR,0, GetDOMParentNodeMemoryManager);
         }
         while(newChild->hasChildNodes())     // Move
-            insertBefore(newChild->getFirstChild(),refChild);
+            castToNode(this)->insertBefore(newChild->getFirstChild(),refChild);
     }
 
     else if (!DOMDocumentImpl::isKidOK(castToNode(this), newChild))



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message