16 bool continueParsing =
true;
18 if (domError.getSeverity() == xercesc::DOMError::DOM_SEVERITY_WARNING) {
19 std::cout <<
"\nWarning at file ";
20 }
else if (domError.getSeverity() == xercesc::DOMError::DOM_SEVERITY_ERROR) {
21 std::cout <<
"\nError at file ";
24 std::cout <<
"\nFatal Error at file ";
25 continueParsing =
false;
29 std::cout <<
toNative(domError.getLocation()->getURI())
30 <<
", line " << domError.getLocation()->getLineNumber()
31 <<
", char " << domError.getLocation()->getColumnNumber()
32 <<
"\n Message: " <<
toNative(domError.getMessage()) << std::endl;
34 return continueParsing;