27#ifndef DOMTREEERRORREPORTER_H_
28#define DOMTREEERRORREPORTER_H_
30#include <xercesc/util/XercesDefs.hpp>
31#include <xercesc/sax/ErrorHandler.hpp>
32#include <xercesc/util/XMLString.hpp>
36#if defined(XERCES_NEW_IOSTREAMS)
42XERCES_CPP_NAMESPACE_USE
46class DOMTreeErrorReporter :
public ErrorHandler {
52 DOMTreeErrorReporter() : fSawErrors(false) {
59 ~DOMTreeErrorReporter() {
67 void warning(
const SAXParseException& toCatch);
74 void error(
const SAXParseException& toCatch);
81 void fatalError(
const SAXParseException& toCatch);
91 bool GetSawErrors()
const;
103inline XERCES_STD_QUALIFIER ostream&
operator <<
104 (XERCES_STD_QUALIFIER ostream& target,
const StrX& toDump) {
105 target << toDump.localForm();
Implementation of JEMRIS StrX.
Simple class for transcoding sax errors to the machines locale.
Definition StrX.h:37