XdmWriterSettings.OmitXmlDeclaration PropertyXdmWriterSettings.OmitXmlDeclaration PropertyXdmWriterSettings::OmitXmlDeclaration Property

Gets or sets a value indicating whether the XML declaration should be omitted in the output.

Syntax

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

Property Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if the XML declaration should be omitted from the output; otherwise falseFalsefalse.

Remarks

This property corresponds to the omit-xml-declaration serialization parameter.

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

By default this property is set to falseFalsefalse.