## XmlTextWriter::WriteStartDocument() method


Writes the XML declaration with the version "1.0".

```cpp
void System::Xml::XmlTextWriter::WriteStartDocument() override
```


## See Also

* Class [XmlTextWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlTextWriter::WriteStartDocument(bool) method


Writes the XML declaration with the version "1.0" and the standalone attribute.

```cpp
void System::Xml::XmlTextWriter::WriteStartDocument(bool standalone) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| standalone | bool | If **true**, it writes "standalone=yes"; if **false**, it writes "standalone=no". |

## See Also

* Class [XmlTextWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
