dbertoni 00/06/23 15:00:25
Modified: c/src/XercesParserLiaison XercesDocumentBridge.cpp
Log:
Changes to remove dependency on Xerces implementation header classes.
Revision Changes Path
1.8 +6 -11
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.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- XercesDocumentBridge.cpp 2000/06/07 18:13:56 1.7
+++ XercesDocumentBridge.cpp 2000/06/23 22:00:23 1.8
@@ -65,8 +65,6 @@
#include <dom/DOM_Node.hpp>
#include <dom/DOM_DOMException.hpp>
-#include <dom/DocumentImpl.hpp>
-#include <dom/NodeImpl.hpp>
@@ -178,14 +176,11 @@
if (theXalanNode == 0)
{
- // Make sure the node belongs to our document...
- NodeImpl* const theOwnerDocument =
- XercesDOM_NodeHack::getImpl(m_xercesDocument);
- assert(theOwnerDocument != 0);
-
- if (theXercesNodeImpl != theOwnerDocument &&
- theXercesNodeImpl->getOwnerDocument()
!= theOwnerDocument &&
- theXercesNodeImpl->getParentNode() !=
theOwnerDocument)
+ XercesDOM_NodeHack theHack(theXercesNodeImpl);
+
+ if (theHack != m_xercesDocument &&
+ theHack.getOwnerDocument() !=
m_xercesDocument &&
+ theHack.getParentNode() != m_xercesDocument)
{
throw
XalanDOMException(XalanDOMException::WRONG_DOCUMENT_ERR);
}
@@ -193,7 +188,7 @@
{
// OK, we haven't yet created a bridge not, so
go ahead and
// create one.
- theXalanNode =
createBridgeNode(XercesDOM_NodeHack(theXercesNodeImpl));
+ theXalanNode = createBridgeNode(theHack);
assert(theXalanNode != 0);
}
}