dbertoni 02/05/14 08:44:09
Modified: c/src/XercesParserLiaison XercesParserLiaison.cpp
Log:
Set validation to auto instead of always. Make validation errors fatal.
Revision Changes Path
1.47 +7 -2
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.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- XercesParserLiaison.cpp 7 May 2002 03:28:40 -0000 1.46
+++ XercesParserLiaison.cpp 14 May 2002 15:44:09 -0000 1.47
@@ -469,6 +469,11 @@
cerr << endl << theMessage << endl;
}
+
+ if (m_useValidation == true)
+ {
+ throw e;
+ }
}
@@ -506,7 +511,7 @@
const XalanDOMChar* const theSystemID = e.getSystemId();
- if (theSystemID == 0)
+ if (theSystemID == 0 || length(theSystemID) == 0)
{
append(theMessage, "<unknown>");
}
@@ -537,7 +542,7 @@
{
DOMParser* const theParser = new DOMParser;
- theParser->setDoValidation(m_useValidation);
+ theParser->setValidationScheme(m_useValidation == true ?
DOMParser::Val_Auto : DOMParser::Val_Never);
theParser->setIncludeIgnorableWhitespace(m_includeIgnorableWhitespace);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]