putDTDHandler Method (C-C++)

 

Allows an application to register a DTDHandler. If the application does not register a DTDHandler, all DTD events reported by the reader are ignored. An application can register a new or different handler while in the middle of parsing a document, and the reader will immediately start using the new handler.

Syntax

  
HRESULT putDTDHandler(  
   [in] ISAXDTDHandler * pHandler);  

Parameters

pHandler[in]
The DTDHandler to register.

Return Value

S_OK
The value returned if the DTDHandler is successfully registered.

Versioning

Implemented in: MSXML 3.0 and later

Applies to

ISAXXMLReader Interface

See Also

getDTDHandler Method (C-C++)