Library: XML
Package: SAX
Header: Poco/SAX/DefaultHandler.h
Default base class for SAX2 event handlers. This class is available as a convenience base class for SAX2 applications: it provides default implementations for all of the callbacks in the four core SAX2 handler classes:
Application writers can extend this class when they need to implement only part of an interface; parser writers can instantiate this class to provide default handlers when the application has not supplied its own.
Direct Base Classes: EntityResolver, DTDHandler, ContentHandler, ErrorHandler
All Base Classes: ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Member Functions: characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, releaseInputSource, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Inherited Functions: characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, releaseInputSource, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Creates the DefaultHandler.
~DefaultHandler();
Destroys the DefaultHandler.
void characters(
const XMLChar ch[],
int start,
int length
);
See also: Poco::XML::ContentHandler::characters()
void endDocument();
See also: Poco::XML::ContentHandler::endDocument()
void endElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname
);
See also: Poco::XML::ContentHandler::endElement()
void endPrefixMapping(
const XMLString & prefix
);
void error(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::error()
void fatalError(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::fatalError()
void ignorableWhitespace(
const XMLChar ch[],
int start,
int length
);
void notationDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString * systemId
);
See also: Poco::XML::DTDHandler::notationDecl()
void processingInstruction(
const XMLString & target,
const XMLString & data
);
void releaseInputSource(
InputSource * pSource
);
InputSource * resolveEntity(
const XMLString * publicId,
const XMLString & systemId
);
void setDocumentLocator(
const Locator * loc
);
void skippedEntity(
const XMLString & name
);
void startDocument();
void startElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname,
const Attributes & attributes
);
void startPrefixMapping(
const XMLString & prefix,
const XMLString & uri
);
void unparsedEntityDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString & systemId,
const XMLString & notationName
);
void warning(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::warning()