Poco::XML

class DOMSerializer

File Information

Library: XML
Package: DOM
Header: Poco/DOM/DOMSerializer.h

Description

The DOMSerializer serializes a DOM document into a sequence of SAX events which are reported to the registered SAX event handlers.

The DOMWriter uses a DOMSerializer with an XMLWriter to serialize a DOM document into textual XML.

Inheritance

Direct Base Classes: XMLReader

All Base Classes: XMLReader

Member Summary

Member Functions: getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getProperty, handleCDATASection, handleCharacterData, handleComment, handleDocument, handleDocumentType, handleElement, handleEntity, handleFragment, handleNode, handleNotation, handlePI, iterate, parse, parseMemoryNP, serialize, setContentHandler, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setProperty

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

Constructors

DOMSerializer

DOMSerializer();

Creates the DOMSerializer.

Destructor

~DOMSerializer virtual

~DOMSerializer();

Destroys the DOMSerializer.

Member Functions

getContentHandler virtual

ContentHandler * getContentHandler() const;

getDTDHandler virtual

DTDHandler * getDTDHandler() const;

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;

serialize

void serialize(
    const Node * pNode
);

Serializes a DOM node and its children into a sequence of SAX events, which are reported to the registered SAX event handlers.

setContentHandler virtual

void setContentHandler(
    ContentHandler * pContentHandler
);

setDTDHandler virtual

void setDTDHandler(
    DTDHandler * pDTDHandler
);

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

handleCDATASection protected

void handleCDATASection(
    const CDATASection * pCDATA
) const;

handleCharacterData protected

void handleCharacterData(
    const Text * pText
) const;

handleComment protected

void handleComment(
    const Comment * pComment
) const;

handleDocument protected

void handleDocument(
    const Document * pDocument
) const;

handleDocumentType protected

void handleDocumentType(
    const DocumentType * pDocumentType
) const;

handleElement protected

void handleElement(
    const Element * pElement
) const;

handleEntity protected

void handleEntity(
    const Entity * pEntity
) const;

handleFragment protected

void handleFragment(
    const DocumentFragment * pFragment
) const;

handleNode protected

void handleNode(
    const Node * pNode
) const;

handleNotation protected

void handleNotation(
    const Notation * pNotation
) const;

handlePI protected

void handlePI(
    const ProcessingInstruction * pPI
) const;

iterate protected

void iterate(
    const Node * pNode
) const;

parse protected virtual

void parse(
    InputSource * pSource
);

The DOMSerializer cannot parse an InputSource, so this method simply throws an XMLException when invoked.

parse protected virtual

void parse(
    const XMLString & systemId
);

The DOMSerializer cannot parse from a system identifier, so this method simply throws an XMLException when invoked.

parseMemoryNP protected virtual

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

The DOMSerializer cannot parse from a system identifier, so this method simply throws an XMLException when invoked.

Securely control IoT edge devices from anywhere   Connect a Device