## XmlWriterSettings::get_WriteEndDocumentOnClose method


Returns a value that indicates whether the [XmlWriter](../../xmlwriter/) will add closing tags to all unclosed element tags when the [XmlWriter::Close](../../xmlwriter/close/) method is called.

```cpp
bool System::Xml::XmlWriterSettings::get_WriteEndDocumentOnClose()
```


### ReturnValue

**true** if all unclosed element tags will be closed out; otherwise, **false**. The default value is **true**.

## See Also

* Class [XmlWriterSettings](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
