## XmlWriterSettings::set_WriteEndDocumentOnClose method


Sets 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
void System::Xml::XmlWriterSettings::set_WriteEndDocumentOnClose(bool value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | bool | The value to set. |

## See Also

* Class [XmlWriterSettings](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
