Class Poco::XML::DefaultHandler
Author: Applied Informatics Software Engineering GmbH and Contributors

# 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:

- EntityResolver
- DTDHandler
- ContentHandler
- ErrorHandler

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

~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
);

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

### 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
);

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

### 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
);

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

### releaseInputSource

void releaseInputSource(
InputSource * pSource
);

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

### resolveEntity

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

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

### setDocumentLocator

void setDocumentLocator(
const Locator * loc
);

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

### skippedEntity

void skippedEntity(
const XMLString & name
);

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

### startDocument

void startDocument();

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

### startElement

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

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

### startPrefixMapping

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

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

### unparsedEntityDecl

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

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

### warning

void warning(
const SAXException & exc
);

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