Poco::XML

class DefaultHandler

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

DefaultHandler();

Creates the DefaultHandler.

Destructor

~DefaultHandler virtual

~DefaultHandler();

Destroys the DefaultHandler.

Member Functions

characters virtual

void characters(
    const XMLChar ch[],
    int start,
    int length
);

See also: Poco::XML::ContentHandler::characters()

endDocument virtual

void endDocument();

See also: Poco::XML::ContentHandler::endDocument()

endElement virtual

void endElement(
    const XMLString & uri,
    const XMLString & localName,
    const XMLString & qname
);

See also: Poco::XML::ContentHandler::endElement()

endPrefixMapping virtual

void endPrefixMapping(
    const XMLString & prefix
);

See also: Poco::XML::ContentHandler::endPrefixMapping()

error virtual

void error(
    const SAXException & exc
);

See also: Poco::XML::ErrorHandler::error()

fatalError virtual

void fatalError(
    const SAXException & exc
);

See also: Poco::XML::ErrorHandler::fatalError()

ignorableWhitespace virtual

void ignorableWhitespace(
    const XMLChar ch[],
    int start,
    int length
);

See also: Poco::XML::ContentHandler::ignorableWhitespace()

notationDecl virtual

void notationDecl(
    const XMLString & name,
    const XMLString * publicId,
    const XMLString * systemId
);

See also: Poco::XML::DTDHandler::notationDecl()

processingInstruction virtual

void processingInstruction(
    const XMLString & target,
    const XMLString & data
);

See also: Poco::XML::ContentHandler::processingInstruction()

releaseInputSource virtual

void releaseInputSource(
    InputSource * pSource
);

See also: Poco::XML::EntityResolver::releaseInputSource()

resolveEntity virtual

InputSource * resolveEntity(
    const XMLString * publicId,
    const XMLString & systemId
);

See also: Poco::XML::EntityResolver::resolveEntity()

setDocumentLocator virtual

void setDocumentLocator(
    const Locator * loc
);

See also: Poco::XML::ContentHandler::setDocumentLocator()

skippedEntity virtual

void skippedEntity(
    const XMLString & name
);

See also: Poco::XML::ContentHandler::skippedEntity()

startDocument virtual

void startDocument();

See also: Poco::XML::ContentHandler::startDocument()

startElement virtual

void startElement(
    const XMLString & uri,
    const XMLString & localName,
    const XMLString & qname,
    const Attributes & attributes
);

See also: Poco::XML::ContentHandler::startElement()

startPrefixMapping virtual

void startPrefixMapping(
    const XMLString & prefix,
    const XMLString & uri
);

See also: Poco::XML::ContentHandler::startPrefixMapping()

unparsedEntityDecl virtual

void unparsedEntityDecl(
    const XMLString & name,
    const XMLString * publicId,
    const XMLString & systemId,
    const XMLString & notationName
);

See also: Poco::XML::DTDHandler::unparsedEntityDecl()

warning virtual

void warning(
    const SAXException & exc
);

See also: Poco::XML::ErrorHandler::warning()