Library: XML
Package: SAX
Header: Poco/SAX/DefaultHandler.h
Description
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.
Inheritance
Direct Base Classes: EntityResolver, DTDHandler, ContentHandler, ErrorHandler
All Base Classes: ContentHandler, DTDHandler, EntityResolver, ErrorHandler
Member Summary
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
Constructors
DefaultHandler
Creates the DefaultHandler.
Destructor
~DefaultHandler
~DefaultHandler();
Destroys the DefaultHandler.
Member Functions
characters
void characters(
const XMLChar ch[],
int start,
int length
);
See also: Poco::XML::ContentHandler::characters()
endDocument
void endDocument();
See also: Poco::XML::ContentHandler::endDocument()
endElement
void endElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname
);
See also: Poco::XML::ContentHandler::endElement()
endPrefixMapping
void endPrefixMapping(
const XMLString & prefix
);
error
void error(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::error()
fatalError
void fatalError(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::fatalError()
ignorableWhitespace
void ignorableWhitespace(
const XMLChar ch[],
int start,
int length
);
notationDecl
void notationDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString * systemId
);
See also: Poco::XML::DTDHandler::notationDecl()
processingInstruction
void processingInstruction(
const XMLString & target,
const XMLString & data
);
releaseInputSource
void releaseInputSource(
InputSource * pSource
);
resolveEntity
InputSource * resolveEntity(
const XMLString * publicId,
const XMLString & systemId
);
setDocumentLocator
void setDocumentLocator(
const Locator * loc
);
skippedEntity
void skippedEntity(
const XMLString & name
);
startDocument
void startDocument();
startElement
void startElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname,
const Attributes & attributes
);
startPrefixMapping
void startPrefixMapping(
const XMLString & prefix,
const XMLString & uri
);
unparsedEntityDecl
void unparsedEntityDecl(
const XMLString & name,
const XMLString * publicId,
const XMLString & systemId,
const XMLString & notationName
);
warning
void warning(
const SAXException & exc
);
See also: Poco::XML::ErrorHandler::warning()