次の方法で共有


doctype Property (Windows Embedded CE 6.0)

1/6/2010

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

Script Syntax

var objXMLDOMDocumentType = oXMLDOMDocument.doctype;

Remarks

Ee502082.collapse(en-US,WinEmbedded.60).gifScript Parameters

None.

Ee502082.collapse(en-US,WinEmbedded.60).gifScript 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.

Ee502082.collapse(en-US,WinEmbedded.60).gifC/C++ Syntax

HRESULT get_doctype(
  IXMLDOMDocumentType** documentType
);

Remarks

Ee502082.collapse(en-US,WinEmbedded.60).gifC/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.

Ee502082.collapse(en-US,WinEmbedded.60).gifC/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.

Ee502082.collapse(en-US,WinEmbedded.60).gifRequirements

Header msxml2.h, msxml2.idl
Windows Embedded CE Windows CE .NET 4.0 and later

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.

See Also

Reference

XML DOM Properties