ISAXDTDHandler:IUnknown (Windows CE 5.0)
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 putDTDHandler method. The instance of the DTDHandler reports notation and unparsed entity declarations to the application.
Method | Description |
---|---|
notationDecl | This method receives notification of a notation declaration event. |
unparsedEntityDecl | This 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 startDocument event, and before the first startElement 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
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
See Also
putDTDHandler method | startDocument | startElement
Send Feedback on this topic to the authors