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/04/26 08:50:49 UTC
cvs commit: xml-xalan/c/src/XercesParserLiaison XercesParserLiaison.cpp
dbertoni 02/04/25 23:50:49
Modified: c/src/XercesParserLiaison XercesParserLiaison.cpp
Log:
Make sure ErrorHandler is set.
Revision Changes Path
1.45 +18 -0 xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp
Index: XercesParserLiaison.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesParserLiaison.cpp,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- XercesParserLiaison.cpp 6 Apr 2002 19:37:08 -0000 1.44
+++ XercesParserLiaison.cpp 26 Apr 2002 06:50:48 -0000 1.45
@@ -197,6 +197,15 @@
theParser->setDocumentHandler(&handler);
+ if (m_errorHandler == 0)
+ {
+ theParser->setErrorHandler(this);
+ }
+ else
+ {
+ theParser->setErrorHandler(m_errorHandler);
+ }
+
theParser->parse(urlInputSource);
}
@@ -208,6 +217,15 @@
const XalanDOMString& /* identifier */)
{
XalanAutoPtr<DOMParser> theParser(CreateDOMParser());
+
+ if (m_errorHandler == 0)
+ {
+ theParser->setErrorHandler(this);
+ }
+ else
+ {
+ theParser->setErrorHandler(m_errorHandler);
+ }
theParser->parse(reader);
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org