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

System.Xml.XmlParserContext.DocTypeName Property

Gets or sets the name of the document type in a document type declaration. [Edit]

public string DocTypeName { set; get; }

Value

A string specifying the name of the document type. [Edit]

Remarks

If an attempt is made to set this property to null, it is set to string.Empty.

Note:

A document type declaration is of the following form:

<!DOCTYPE DocTypeName PUBLIC "PublicId" "SystemId" [InternalSubset]>

This property, along with XmlParserContext.InternalSubset, XmlParserContext.PublicId, and XmlParserContext.SystemId properties, provide all the document type declaration information.

[Edit]

Requirements

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