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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to