Compartir a través de


ISAXDTDHandler

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The ISAXDTDHandler interface receives notification of basic DTD (document type definition)-related events. If a SAX (Simple API for XML) application needs information about notations and unparsed entities, the application implements this interface and registers an instance with the SAX2 reader using the ISAXXMLReader::putDTDHandler Method method. The instance of the DTDHandler reports notation and unparsed entity declarations to the application.

Method Description

ISAXDTDHandler::notationDecl Method

Receives notification of a notation declaration event.

ISAXDTDHandler::unparsedEntityDecl Method

Receives notification of an unparsed entity declaration event.

Remarks

This interface includes the following DTD events that the XML recommendation requires processors to report: notation and unparsed entity declarations.

The reader can report these events in any order, regardless of the order in which the notations and unparsed entities were declared. However, all DTD events must be reported after the content handler's ISAXContentHandler::startDocument Method event, and before the first ISAXContentHandler::startElement Method event.

It is up to the application to store the information for future use (perhaps in a hash table or object tree). If the application encounters attributes of type NOTATION, ENTITY, or ENTITIES, it can use the information that it obtained through this interface to find the entity or notation corresponding to the attribute value.

Requirements

Header msxml2.h, msxml2.idl
Library uuid.lib
Windows Embedded CE Windows CE .NET 4.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

XML SAX Interfaces