dbertoni 00/05/01 08:10:35
Modified: c/src/XercesParserLiaison XercesDocumentBridge.cpp
Log:
Temporary work-around for what I believe is a Xerces bug.
Revision Changes Path
1.2 +2 -1
xml-xalan/c/src/XercesParserLiaison/XercesDocumentBridge.cpp
Index: XercesDocumentBridge.cpp
===================================================================
RCS file:
/home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesDocumentBridge.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XercesDocumentBridge.cpp 2000/04/11 14:39:29 1.1
+++ XercesDocumentBridge.cpp 2000/05/01 15:10:34 1.2
@@ -173,7 +173,8 @@
assert(theOwnerDocument != 0);
if (theXercesNodeImpl != theOwnerDocument &&
- theXercesNodeImpl->getOwnerDocument()
!= theOwnerDocument)
+ theXercesNodeImpl->getOwnerDocument()
!= theOwnerDocument &&
+ theXercesNodeImpl->getParentNode() !=
theOwnerDocument)
{
throw
XalanDOMException(XalanDOMException::WRONG_DOCUMENT_ERR);
}