struct CCL::IXmlContentHandler

Overview

#include <ixmlparser.h>

struct IXmlContentHandler: public CCL::IUnknown
{
    // methods

    virtual tresult CCL_API startElement (
        StringRef name,
        const IStringDictionary& attributes
    ) = 0;

    virtual tresult CCL_API endElement (StringRef name) = 0;

    virtual tresult CCL_API characterData (
        const uchar* data,
        int length,
        tbool isCDATA
    ) = 0;

    virtual tresult CCL_API processingInstruction (StringRef target, StringRef data) = 0;
    virtual tresult CCL_API startNamespace (StringRef prefix, StringRef uri) = 0;
    virtual tresult CCL_API endNamespace (StringRef prefix) = 0;
};

Inherited Members

public:
    // methods

    virtual tresult CCL_API queryInterface (UIDRef iid, void** ptr) = 0;
    virtual unsigned int CCL_API retain () = 0;
    virtual unsigned int CCL_API release () = 0;

Detailed Documentation

Methods

virtual tresult CCL_API startElement (
    StringRef name,
    const IStringDictionary& attributes
) = 0

Notification of the beginning of an element.

A corresponding endElement call will follow.

virtual tresult CCL_API endElement (StringRef name) = 0

Notification of the end of an element.

virtual tresult CCL_API characterData (
    const uchar* data,
    int length,
    tbool isCDATA
) = 0

Notification of character data.

Can be called several times with small chunks of a single entity.

virtual tresult CCL_API processingInstruction (StringRef target, StringRef data) = 0

Notification of processing instruction (<?target data?>).

virtual tresult CCL_API startNamespace (StringRef prefix, StringRef uri) = 0

Called once for each namespace declaration (if namespace processing is enabled).

virtual tresult CCL_API endNamespace (StringRef prefix) = 0

Called once for each namespace declaration (if namespace processing is enabled).