Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Contains the document type node that specifies the document type definition (DTD) for this document.
[Script]
Script Syntax
varobjXMLDOMDocumentType=oXMLDOMDocument.doctype;
Script Parameters
None.
Script Return Value
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++]
C/C++ Syntax
HRESULT get_doctype(IXMLDOMDocumentType** documentType);
C/C++ Parameters
- documentType
[out, retval] 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.
Requirements
OS Versions: Windows CE .NET 4.0 and later.
Header: Msxml2.h, Msxml2.idl.
General 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.
This property is read-only, and applies to the following objects and interfaces:
DOMDocument and IXMLDOMDocumentType.
Send Feedback on this topic to the authors