WriteEndDocumentOnClose Property

XmlWriterSettings.WriteEndDocumentOnClose Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets a value that indicates whether the XmlWriter will add closing tags to all unclosed element tags when the Close method is called.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

'Declaration
Public Property WriteEndDocumentOnClose As Boolean

Property Value

Type: System.Boolean
true if all unclosed element tags will be closed out; otherwise, false. The default value is true.

If you set this flag to false, the output XML file may not be well-formed.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft