Share via


XmlWriterProperty_OmitXmlDeclaration (Compact 7)

3/12/2014

This property specifies whether the writer should omit the XML declaration at the beginning of the document. The type of this property is Boolean.

The default value is FALSE.

Remarks

This property can be set and retrieved by using the SetProperty (IXmlReader) and GetProperty (IXmlReader) methods.

When this property is FALSE, the writer includes the XML declaration. When this property is TRUE, the writer does not include the XML declaration.

See Also

Reference

IXmlWriter Properties
SetProperty (IXmlReader)
GetProperty (IXmlReader)
XmlWriterProperty_ByteOrderMark
IXmlWriter Methods