ISAXDeclHandler:IUnknown (Windows CE 5.0)
This is an optional extension handler for Simple API for XML (SAX2) to provide information about DTD declarations in an XML document. Note that data-related DTD declarations (unparsed entities and notations) are already reported through the ISAXDTDHandler interface.
If you are using the DeclHandler together with a LexicalHandler, all of the events occur between the startDTD and endDTD events.
To set the DeclHandler for a SAX2 reader, use the putProperty method with the property ID, "http://xml.org/sax/properties/declaration-handler"
, as shown in the following code sample.
... SAXXMLReader * r = ...
SAXDeclHandler * dh = new SAXDeclHandler();
r->putProperty("http://xml.org/sax/properties/declaration-handler",dh);
Method | Description |
---|---|
attributeDecl | This method reports an attribute type declaration. |
elementDecl | This method reports an element type declaration. |
externalEntityDecl | This method reports a parsed external entity declaration. |
internalEntityDecl | This method reports a parsed internal entity declaration. |
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
Link Library: Uuid.lib.
Send Feedback on this topic to the authors