Poco::XML

class SAXParser

File Information

Library: XML
Package: SAX
Header: Poco/SAX/SAXParser.h

Description

Inheritance

Direct Base Classes: XMLReader

All Base Classes: XMLReader

Member Summary

Member Functions: addEncoding, getContentHandler, getDTDHandler, getEncoding, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parseMemoryNP, parseString, setContentHandler, setDTDHandler, setEncoding, setEntityResolver, setErrorHandler, setFeature, setProperty, setupParse

Inherited Functions: getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parseMemoryNP, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty

Constructors

SAXParser

SAXParser();

Creates an SAXParser.

SAXParser

SAXParser(
    const XMLString & encoding
);

Creates an SAXParser with the given encoding.

Destructor

~SAXParser virtual

~SAXParser();

Destroys the SAXParser.

Member Functions

addEncoding

void addEncoding(
    const XMLString & name,
    Poco::TextEncoding * pEncoding
);

Adds an encoding to the parser. Does not take ownership of the pointer! XMLReader

getContentHandler virtual

ContentHandler * getContentHandler() const;

getDTDHandler virtual

DTDHandler * getDTDHandler() const;

getEncoding

const XMLString & getEncoding() const;

Returns the name of the encoding used by the parser if no encoding is specified in the XML document.

getEntityResolver virtual

EntityResolver * getEntityResolver() const;

getErrorHandler virtual

ErrorHandler * getErrorHandler() const;

getFeature virtual

bool getFeature(
    const XMLString & featureId
) const;

getProperty virtual

void * getProperty(
    const XMLString & propertyId
) const;

parse virtual

void parse(
    InputSource * pSource
);

parse virtual

void parse(
    const XMLString & systemId
);

parseMemoryNP virtual

void parseMemoryNP(
    const char * xml,
    std::size_t size
);

Extensions

parseString

void parseString(
    const std::string & xml
);

setContentHandler virtual

void setContentHandler(
    ContentHandler * pContentHandler
);

setDTDHandler virtual

void setDTDHandler(
    DTDHandler * pDTDHandler
);

setEncoding

void setEncoding(
    const XMLString & encoding
);

Sets the encoding used by the parser if no encoding is specified in the XML document.

setEntityResolver virtual

void setEntityResolver(
    EntityResolver * pResolver
);

setErrorHandler virtual

void setErrorHandler(
    ErrorHandler * pErrorHandler
);

setFeature virtual

void setFeature(
    const XMLString & featureId,
    bool state
);

setProperty virtual

void setProperty(
    const XMLString & propertyId,
    const XMLString & value
);

setProperty virtual

void setProperty(
    const XMLString & propertyId,
    void * value
);

setupParse protected

void setupParse();

Variables

FEATURE_PARTIAL_READS static

static const XMLString FEATURE_PARTIAL_READS;

PROPERTY_BLA_ACTIVATION_THRESHOLD static

static const XMLString PROPERTY_BLA_ACTIVATION_THRESHOLD;

PROPERTY_BLA_MAXIMUM_AMPLIFICATION static

static const XMLString PROPERTY_BLA_MAXIMUM_AMPLIFICATION;

Securely control IoT edge devices from anywhere   Connect a Device