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!

XmlWriter.WriteDocType

Writes out the DOCTYPE declaration with the specified name and optional attributes.

[Visual Basic]
MustOverride Public Sub WriteDocType( _
   ByVal name As String, _
   ByVal pubid As String, _
   ByVal sysid As String, _
   ByVal subset As String _
)
[C#]
public abstract void WriteDocType(
   string name,
   string pubid,
   string sysid,
   string subset
);
[C++]
public: virtual void WriteDocType(
   String* name,
   String* pubid,
   String* sysid,
   String* subset
) = 0;
[JScript]
public abstract function WriteDocType(
   name : String,
   pubid : String,
   sysid : String,
   subset : String
);

Parameters

name
The name of the DOCTYPE- this must be non-empty.
pubid
If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments.
sysid
If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument.
subset
If non-null it writes [subset] where subset is replaced with the value of this argument.

Exceptions

Exception Type Condition
InvalidOperationException This method was called outside the prolog (after the root element).

See Also

XmlWriter Class | XmlWriter Members | System.NewXml Namespace