XdmWriter.WriteDocType MethodXdmWriter.WriteDocType MethodXdmWriter::WriteDocType Method

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

Syntax

Public Overrides Sub WriteDocType( _
    name As String, _
    pubid As String, _
    sysid As String, _
    subset As String _
)
public override void WriteDocType(
    string name,
    string pubid,
    string sysid,
    string subset
)
public:
virtual void WriteDocType(
    String^ name, 
    String^ pubid, 
    String^ sysid, 
    String^ subset
) override
 

Parameters

name

Type: System.StringSystem.StringSystem::String^

The name of the DOCTYPE. This must be non-empty.

pubid

Type: System.StringSystem.StringSystem::String^

If non-null it also writes PUBLIC "pubid" "sysid" where pubid and sysid are replaced with the value of the given arguments.

sysid

Type: System.StringSystem.StringSystem::String^

If pubid is null and sysid is non-null it writes SYSTEM "sysid" where sysid is replaced with the value of this argument.

subset

Type: System.StringSystem.StringSystem::String^

If non-null it writes [subset] where subset is replaced with the value of this argument.

Exceptions

ExceptionCondition
InvalidOperationExceptionInvalidOperationExceptionInvalidOperationException This method was called outside the prologue (after the root element).
ArgumentExceptionArgumentExceptionArgumentException The value for name would result in invalid XML.