## XmlWriter::WriteStartDocument() method


When overridden in a derived class, writes the XML declaration with the version "1.0".

```cpp
virtual void System::Xml::XmlWriter::WriteStartDocument()=0
```


## See Also

* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
## XmlWriter::WriteStartDocument(bool) method


When overridden in a derived class, writes the XML declaration with the version "1.0" and the standalone attribute.

```cpp
virtual void System::Xml::XmlWriter::WriteStartDocument(bool standalone)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| standalone | bool | If **true**, it writes "standalone=yes"; if **false**, it writes "standalone=no". |

## See Also

* Class [XmlWriter](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PDF for C++](../../../)
