Share via


doctype Property

Contains the document type node that specifies the document type definition (DTD) for this document.

var objXMLDOMDocumentType = oXMLDOMDocument.doctype;

HRESULT get_doctype(
  IXMLDOMDocumentType** documentType
);

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.

 Last updated on Saturday, April 10, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.