diff --git a/DOM/SAX2DOM/SAX2DOM.h b/DOM/SAX2DOM/SAX2DOM.h index 946591c4..eeabe64f 100644 --- a/DOM/SAX2DOM/SAX2DOM.h +++ b/DOM/SAX2DOM/SAX2DOM.h @@ -23,6 +23,7 @@ template { typedef SAX::basic_EntityResolver EntityResolverT; + typedef SAX::basic_ErrorHandler ErrorHandlerT; typedef SimpleDOM::EntityImpl EntityT; typedef SimpleDOM::NotationImpl NotationT; typedef SimpleDOM::ElementImpl ElementT; @@ -37,8 +38,8 @@ class Parser : private SAX::basic_DefaultHandler2 void setEntityResolver(EntityResolverT& resolver) { entityResolver_ = &resolver; } EntityResolverT* getEntityResolver() const { return entityResolver_; } - void setErrorHandler(SAX::ErrorHandler& handler) { errorHandler_ = &errorHandler; } - SAX::ErrorHandler* getErrorHandler() const { return errorHandler_; } + void setErrorHandler(ErrorHandlerT& handler) { errorHandler_ = &errorHandler; } + ErrorHandlerT* getErrorHandler() const { return errorHandler_; } bool parse(const stringT& systemId) { @@ -109,7 +110,7 @@ class Parser : private SAX::basic_DefaultHandler2 std::map declaredEntities_; EntityResolverT* entityResolver_; - SAX::ErrorHandler* errorHandler_; + ErrorHandlerT* errorHandler_; SAX::AttributeTypes attributeTypes_; private: