WriteStartDocument()
XmlTextWriter::WriteStartDocument() method
Writes the XML declaration with the version “1.0”.
void System::Xml::XmlTextWriter::WriteStartDocument() override
Exceptions
| Exception | Description |
|---|
| InvalidOperationException | This is not the first write method called after the constructor. |
XmlTextWriter::WriteStartDocument(bool) method
Writes the XML declaration with the version “1.0” and the standalone attribute.
void System::Xml::XmlTextWriter::WriteStartDocument(bool standalone) override
Arguments
| Parameter | Type | Description |
|---|
| standalone | bool | If true, it writes “standalone=yes”; if false, it writes “standalone=no”. |
Exceptions
| Exception | Description |
|---|
| InvalidOperationException | This is not the first write method called after the constructor. |
See Also