XdmWriterSettings.DoctypePublic PropertyXdmWriterSettings.DoctypePublic PropertyXdmWriterSettings::DoctypePublic Property
PUBLIC document type.
- Namespace: XmlPrime.SerializationXmlPrime.SerializationXmlPrime.Serialization
- Assembly: XmlPrime (in XmlPrime.dll)
Exceptions
| Exception | Condition |
| 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.
