XdmWriterSettings.DoctypePublic PropertyXdmWriterSettings.DoctypePublic PropertyXdmWriterSettings::DoctypePublic Property

Gets or sets the PUBLIC document type.

Syntax

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

Property Value

Type: System.StringSystem.StringSystem::String^

The PUBLIC document type.

Exceptions

ExceptionCondition
XdmExceptionXdmExceptionXdmException An SEPM0016 error is raised if an attempt is made to set doctype-public to a string that is not made up of PubidChar characters

Remarks

This property corresponds to the doctype-public serialization parameter. If the doctype-system parameter is specified, then this specifies the public document type to be serialized in the document type declaration. The doctype-public parameter is ignored unless the doctype-system parameter is specified.

The value of this property must either be null a null reference (Nothing in Visual Basic) nullptr or a string of PubidChar characters.

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

If MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod of XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod and this property is not set to a valid public identifier then a SERE0003 XdmExceptionXdmExceptionXdmException is thrown if serialization is attempted.

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