Adds a new document type declaration to the child list of this document.
[Visual Basic] Public Function AddDocType( _ ByVal docType As String _ ) As XmlDocType [C#] public XmlDocType AddDocType( string docType ); [C++] public: XmlDocType* AddDocType( String* docType ); [JScript] public function AddDocType( docType : String ) : XmlDocType;
The newly created document type declaration node.
The argument must contain the complete text of the document type declaration, starting with the string "<!DOCTYPE" and ending with the string ">".
XmlDocument Class | XmlDocument Members | System.Xml Namespace