XdmWriterSettings.Standalone PropertyXdmWriterSettings.Standalone PropertyXdmWriterSettings::Standalone Property

Gets or sets a value indicating whether the XML declaration must contain a standalone document declaration.

This property corresponds to the standalone serialization parameter.

If this property has the value YesYesYes or the value NoNoNo, the XML declaration includes a standalone document declaration with the value specified by this property. If the standalone parameter has the value OmitOmitOmit, the XML declaration will not include a standalone document declaration.

If MethodMethodMethod is not set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod then this property is ignored.

If this property is not set to OmitOmitOmit, OmitXmlDeclarationOmitXmlDeclarationOmitXmlDeclaration is set to trueTruetrue and MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod then a SEPM0009 XdmExceptionXdmExceptionXdmException is thrown when serialization is attempted.

By default this property is set to OmitOmitOmit.

Syntax

Public Property Standalone As Standalone
        Get
        Set(ByVal value As Standalone)
public Standalone Standalone { get; set; }
public:
property Standalone Standalone {
    Standalone get();
    void set(Standalone value);
}
 

Property Value

Type: XmlPrime.Serialization.StandaloneXmlPrime.Serialization.StandaloneXmlPrime.Serialization::Standalone

trueTruetrue if the XML declaration must contain a standalone document declaration; otherwise falseFalsefalse.