Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

endDTD Method

Receives the end of a document type declaration. If the document has no such declaration, this method will not be invoked.

[Visual Basic]

Implementation Syntax

Sub endDTD()

Return Values

If failed, the LexicalHandler raises a trappable error.

[C/C++]

A document type declaration connects a document to its document type definition (DTD), which defines the rules of the document, such as what tags can go in your document, what tags can contain other tags, and the number and sequence of the tags. This declaration always begins with "<!DOCTYPE", followed by the name of the DTD, followed by a declaration of the DTD or a link to where the DTD can be found. Finally, it ends with a ">" to close the declaration. For example:

<!DOCTYPE NAME [
…DTD content goes here.
]>

Syntax

HRESULT endDTD();

Return Values

S_OK
The value returned if no errors occur.
E_FAIL
The value returned if the parse operation should be aborted.

To view reference information for Visual Basic or C/C++ only, click the Language Filter button Language Filter in the upper-left corner of the page.

See Also

startDTD Method

Applies to: ISAXLexicalHandler/IVBSAXLexicalHandler Interface