You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2002/06/26 03:19:13 UTC
cvs commit: xml-xalan/c/src/XercesParserLiaison XercesDocumentBridge.cpp
dbertoni 2002/06/25 18:19:13
Modified: c/src/XercesParserLiaison XercesDocumentBridge.cpp
Log:
Throw exceptions for unsupported calls.
Revision Changes Path
1.25 +7 -5 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.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- XercesDocumentBridge.cpp 20 May 2002 18:37:58 -0000 1.24
+++ XercesDocumentBridge.cpp 26 Jun 2002 01:19:13 -0000 1.25
@@ -1441,6 +1441,9 @@
XercesDocumentBridge::getElementsByTagName(const XalanDOMString& /* tagname */) const
{
// Not supported
+ throw XercesDOMException(XercesDOMException::NOT_SUPPORTED_ERR);
+
+ // Dummy return value...
return 0;
}
@@ -1451,12 +1454,9 @@
XalanNode* importedNode,
bool deep)
{
- // $$$ToDo: Fix this...
- // The problem is that we must get the Xerces node that corresponds to the
- // importedNode parameter. We could assume that it is indeed a node from
- // another XercesDocumentBridge, but I'm not sure that we should do that.
throw XercesDOMException(XercesDOMException::NOT_SUPPORTED_ERR);
+ // Dummy return value...
return 0;
}
@@ -1519,7 +1519,9 @@
const XalanDOMString& /* namespaceURI */,
const XalanDOMString& /* localName */) const
{
- // Not supported
+ throw XercesDOMException(XercesDOMException::NOT_SUPPORTED_ERR);
+
+ // Dummy return value...
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org