class Poco::XML::NamespaceStrategy

Overview

This class is used by ParserEngine to handle the startElement, endElement, startPrefixMapping and endPrefixMapping events. Moreā€¦

#include <NamespaceStrategy.h>

class NamespaceStrategy
{
public:
    // methods

    virtual
    void
    startElement(
        const XMLChar* name,
        const XMLChar** atts,
        int specifiedCount,
        ContentHandler* pContentHandler
        ) = 0;

    virtual
    void
    endElement(
        const XMLChar* name,
        ContentHandler* pContentHandler
        ) = 0;

protected:
    // fields

    static const XMLString NOTHING;

    // methods

    static
    void
    splitName(
        const XMLChar* qname,
        XMLString& uri,
        XMLString& localName
        );

    static
    void
    splitName(
        const XMLChar* qname,
        XMLString& uri,
        XMLString& localName,
        XMLString& prefix
        );
};

// direct descendants

class NamespacePrefixesStrategy;
class NoNamespacePrefixesStrategy;
class NoNamespacesStrategy;

Detailed Documentation

This class is used by ParserEngine to handle the startElement, endElement, startPrefixMapping and endPrefixMapping events.

Methods

virtual
void
startElement(
    const XMLChar* name,
    const XMLChar** atts,
    int specifiedCount,
    ContentHandler* pContentHandler
    ) = 0

Translate the arguments as delivered by Expat and call the startElement() method of the ContentHandler.

virtual
void
endElement(
    const XMLChar* name,
    ContentHandler* pContentHandler
    ) = 0

Translate the arguments as delivered by Expat and call the endElement() method of the ContentHandler.