Microsoft XML 2.5 SDK


 

IXMLDOMDocument::get_doctype Method

[This is preliminary documentation and subject to change.]

Contains the document type node that specifies the DTD for this document.

Visual Basic Syntax

Set objXMLDOMDocumentType = oXMLDOMDocument.doctype

C/C++ Syntax

HRESULT get_doctype(

    IXMLDOMDocumentType **documentType);

Parameters

documentType

[out]
For XML, address of the node of type NODE_DOCUMENT_TYPE that specifies the document type definition (DTD). Returns NULL for XML documents without a DTD, and for HTML documents.

C/C++ Return Values

S_OK

Value returned if successful.

S_FALSE

Value when returning null.

E_INVALIDARG

Value returned if documentType is null.

Remarks

An XML document can contain a document type declaration before the first element in the document. It starts with the tag <!DOCTYPE > and can specify an external DTD.

See Also

IXMLDOMDocumentType