XdmWriterSettings.DoctypeSystem PropertyXdmWriterSettings.DoctypeSystem PropertyXdmWriterSettings::DoctypeSystem Property

Gets or sets the SYSTEM document type.

Syntax

Public Property DoctypeSystem As String
        Get
        Set(ByVal value As String)
public string DoctypeSystem { get; set; }
public:
property String^ DoctypeSystem {
    String^ get();
    void set(String^ value);
}
 

Property Value

Type: System.StringSystem.StringSystem::String^

The SYSTEM document type.

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmException An SEPM0016 error is raised if an attempt is made to set doctype-system to a string that contains both quote (") and apostrophe (') characters.

Remarks

This property corresponds to the doctype-system serialization parameter. If the doctype-system parameter is specified, then a document type declaration is output immediately before the first element. The doctype-system parameter specifies the SYSTEM document type.

This property cannot contain both a quote character (") and an apostrophe character (').

This property is ignored when MethodMethodMethod is set to TextOutputMethodTextOutputMethodTextOutputMethod or CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod.

By default the DoctypeSystemDoctypeSystemDoctypeSystem property is set to null a null reference (Nothing in Visual Basic) nullptr.

If this property is set to a non-null a null reference (Nothing in Visual Basic) nullptr value, OmitXmlDeclarationOmitXmlDeclarationOmitXmlDeclaration is set to trueTruetrue, MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod and VersionVersionVersion is not set to null a null reference (Nothing in Visual Basic) nullptr or "1.0" then a SEPM0009 XdmExceptionXdmExceptionXdmException is thrown if serialization is attempted.