IXMLDOMDocument::doctype Method
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, the address of the node of type NODE_DOCUMENT_TYPE that specifies the 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 returned when there is no doctype node.
- 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
IXMLDOMDocument Interface | IXMLDOMDocumentType Interface