Library: XML
Package: SAX
Header: Poco/SAX/XMLFilterImpl.h
Base class for deriving an XML filter.
This class is designed to sit between an XMLReader and the client application's event handlers. By default, it does nothing but pass requests up to the reader and events on to the handlers unmodified, but subclasses can override specific methods to modify the event stream or the configuration requests as they pass through.
Direct Base Classes: XMLFilter, EntityResolver, DTDHandler, ContentHandler, ErrorHandler
All Base Classes: ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
Known Derived Classes: WhitespaceFilter
Member Functions: characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parent, parse, parseMemoryNP, processingInstruction, releaseInputSource, resolveEntity, setContentHandler, setDTDHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, setupParse, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Inherited Functions: characters, endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parseMemoryNP, processingInstruction, releaseInputSource, resolveEntity, setContentHandler, setDTDHandler, setDocumentLocator, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
Construct an empty XML filter, with no parent.
This filter will have no parent: you must assign a parent before you start a parse or do any configuration with setFeature or setProperty, unless you use this as a pure event consumer rather than as an XMLReader.
XMLFilterImpl(
XMLReader * pParent
);
Construct an XML filter with the specified parent.
~XMLFilterImpl();
Destroys the XMLFilterImpl.
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 & e
);
See also: Poco::XML::ErrorHandler::error()
void fatalError(
const SAXException & e
);
See also: Poco::XML::ErrorHandler::fatalError()
ContentHandler * getContentHandler() const;
DTDHandler * getDTDHandler() const;
See also: Poco::XML::XMLReader::getDTDHandler()
EntityResolver * getEntityResolver() const;
ErrorHandler * getErrorHandler() const;
See also: Poco::XML::XMLReader::getErrorHandler()
bool getFeature(
const XMLString & featureId
) const;
See also: Poco::XML::XMLReader::getFeature()
XMLReader * getParent() const;
See also: Poco::XML::XMLFilter::getParent()
void * getProperty(
const XMLString & propertyId
) const;
See also: Poco::XML::XMLReader::getProperty()
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 parse(
InputSource * pSource
);
See also: Poco::XML::XMLReader::parse()
void parse(
const XMLString & systemId
);
See also: Poco::XML::XMLReader::parse()
void parseMemoryNP(
const char * xml,
std::size_t size
);
See also: Poco::XML::XMLReader::parseMemoryNP()
void processingInstruction(
const XMLString & target,
const XMLString & data
);
void releaseInputSource(
InputSource * pSource
);
InputSource * resolveEntity(
const XMLString * publicId,
const XMLString & systemId
);
void setContentHandler(
ContentHandler * pContentHandler
);
void setDTDHandler(
DTDHandler * pDTDHandler
);
See also: Poco::XML::XMLReader::setDTDHandler()
void setDocumentLocator(
const Locator * loc
);
void setEntityResolver(
EntityResolver * pResolver
);
void setErrorHandler(
ErrorHandler * pErrorHandler
);
See also: Poco::XML::XMLReader::setErrorHandler()
void setFeature(
const XMLString & featureId,
bool state
);
See also: Poco::XML::XMLReader::setFeature()
void setParent(
XMLReader * pParent
);
See also: Poco::XML::XMLFilter::setParent()
void setProperty(
const XMLString & propertyId,
const XMLString & value
);
See also: Poco::XML::XMLReader::setProperty()
void setProperty(
const XMLString & propertyId,
void * value
);
See also: Poco::XML::XMLReader::setProperty()
void skippedEntity(
const XMLString & prefix
);
void startDocument();
void startElement(
const XMLString & uri,
const XMLString & localName,
const XMLString & qname,
const Attributes & attrList
);
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 & e
);
See also: Poco::XML::ErrorHandler::warning()
XMLReader * parent() const;
Return a pointer to the parent reader. Subclasses can use this method instead of getParent() for better performance - this method is non-virtual and implemented as inline.
virtual void setupParse();
Setup the event handlers in the parent reader.