## XmlTextWriter::WriteStartDocument() method


写出版本为 "1.0" 的 XML 声明。

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


## 另见

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


写出版本为 "1.0" 且包含 standalone 属性的 XML 声明。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| standalone | bool | 如果 **true**，则写入 "standalone=yes"；如果 **false**，则写入 "standalone=no"。 |

## 另见

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