XdmSerializationSettings.OmitXmlDeclaration PropertyXdmSerializationSettings.OmitXmlDeclaration PropertyXdmSerializationSettings::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 in the output; otherwise falseFalsefalse.

Remarks

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

In XML and XHTML output modes this parameter indicates whether the XML declaration should be omitted. If the output method is Text or HTML then this parameter is ignored.