1 #include "XML_Error_Handler.h"
3 #include <xercesc/util/XMLString.hpp>
4 #include <xercesc/dom/DOMLocator.hpp>
5 #include <xercesc/sax/SAXParseException.hpp>
6 #include "XercesString.h"
11 void XML_Error_Handler::warning(const xercesc::SAXParseException
& toCatch
)
15 XStr
file (toCatch
.getSystemId ());
16 XStr
msg (toCatch
.getMessage ());
18 std::cerr
<< "Warning: " << file
<< ':' << toCatch
.getLineNumber ()
19 << ':' << toCatch
.getColumnNumber () << " - "
24 void XML_Error_Handler::error(const xercesc::SAXParseException
& toCatch
)
28 XStr
file (toCatch
.getSystemId ());
29 XStr
msg (toCatch
.getMessage ());
31 std::cerr
<< "Error: " << file
<< ':' << toCatch
.getLineNumber ()
32 << ':' << toCatch
.getColumnNumber () << " - "
38 void XML_Error_Handler::fatalError(const xercesc::SAXParseException
& toCatch
)
42 XStr
file (toCatch
.getSystemId ());
43 XStr
msg (toCatch
.getMessage ());
45 std::cerr
<< "Fatal Error: " << file
<< ':' << toCatch
.getLineNumber ()
46 << ':' << toCatch
.getColumnNumber () << " - "
52 void XML_Error_Handler::resetErrors()
54 this->errors_
= false;
58 XML_Error_Handler::getErrors () const