Partager via


ISAXContentHandler (Compact 2013)

3/26/2014

The ISAXContentHandler interface receives notification of the logical content of a document. This is the main interface implemented by most Simple API for XML (SAX) applications. If the application must be informed of basic parsing events, it implements this interface and registers an instance with the XML Reader using the ISAXXMLReader::putContentHandler Method method. The reader then uses this instance to report basic document-related events, such as the start of elements, the end of elements, and character data.

Note

Only one content handler can be registered at a time.

This interface handles events passed by the SAXXMLReader. The order of events handled by ISAXContentHandler follows the order of the information within the document being parsed. For example, the ISAXContentHandler interface handles all of an element's content, including character data, processing instructions, and subelements, in order after first handling the startElement event and before handling the endElement event.

Method

Description

ISAXContentHandler::characters Method

Receives notification of character data.

ISAXContentHandler::endDocument Method

Receives notification of the end of a document.

ISAXContentHandler::startDocument Method

Receives notification of the beginning of a document.

ISAXContentHandler::endElement Method

Receives notification of the end of an element.

ISAXContentHandler::startElement Method

Receives notification of the beginning of an element.

ISAXContentHandler::ignorableWhitespace Method

Receives notification of ignorable white space in element content. This method is not called in the current implementation because the SAX2 implementation is non-validating.

ISAXContentHandler::endPrefixMapping Method

Ends the scope of a prefix-URI name space mapping.

ISAXContentHandler::startPrefixMapping Method

Begins the scope of a prefix-URI name space mapping.

ISAXContentHandler::processingInstruction Method

Receives notification of a processing instruction.

ISAXContentHandler::putDocumentLocator Method

Receives an interface for locating the origin of SAX document events.

ISAXContentHandler::skippedEntity Method

Receives notification of a skipped entity.

Requirements

Header

msxml2.h,
msxml2.idl

Library

uuid.lib

See Also

Reference

XML SAX Interfaces