NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlDocument.AddDocType

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;

Parameters

docType
The text of the document type declaration to create and add.

Return Value

The newly created document type declaration node.

Remarks

The argument must contain the complete text of the document type declaration, starting with the string "<!DOCTYPE" and ending with the string ">".

See Also

XmlDocument Class | XmlDocument Members | System.Xml Namespace