Creates an XmlDocType instance in this context.
[Visual Basic] Public Function CreateDocType( _ ByVal docType As String _ ) As XmlDocType [C#] public XmlDocType CreateDocType( string docType ); [C++] public: XmlDocType* CreateDocType( String* docType ); [JScript] public function CreateDocType( docType : String ) : XmlDocType;
An XmlDocType instance with the given text.
Exception Type | Condition |
---|---|
ArgumentException | If text is null, if text does not start with the character sequence "<!DOCTYPE", or if text does not end with the character ">". |
An exception is thrown if text does not start with the the character sequence "<!DOCTYPE" or end with the character ">".
XmlContext Class | XmlContext Members | System.Xml Namespace