Mono Class Library: System.Xml.XmlDocument Overview | Members

System.Xml.XmlDocument.DocumentType Property

Gets the document type definition (DTD). [Edit]

public virtual XmlDocumentType DocumentType { get; }

Value

System.Xml.XmlDocumentType object that represents the document type definition (DTD) of this document, or null if none as such. [Edit]

Remarks

This property holds an System.Xml.XmlDocumentType object that represents DTD (document type definition) of this document.

DTD node can be created either from System.Xml.XmlDocument.ReadNode where the input System.Xml.XmlReader was positioned at DTD, or System.Xml.XmlDocument.CreateDocumentType method. Note that there is no standard way to provide DTD node in W3C Document Object Model specification. They are just a proprietary extension.

This property is an equivalent of "doctype" attribute of Document interface in W3C Document Object Model Core.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0