Click to return to the XML (Extensible Markup Language) home page    
IXMLDOMDocument::createTe...     IXMLDOMDocument::document...     IXMLDOMDocument Interface    
Web Workshop  |  XML (Extensible Markup Language)

IXMLDOMDocument::get_doctype Method


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



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.