[]
Saves the document to the specified file in XML format.
public bool SaveXml(string fileName)
| Type | Name | Description |
|---|---|---|
| string | fileName | The name of the file where you want to save the document. |
| Type | Description |
|---|---|
| bool | True, if the file is successfully saved; otherwise, False. |
Saves the document to the specified stream in XML format.
public bool SaveXml(Stream stream)
| Type | Name | Description |
|---|---|---|
| Stream | stream | The stream to which you want to save. |
| Type | Description |
|---|---|
| bool | True, if the document is successfully saved; otherwise, False. |
Returns the XML content of the document as a string.
public string SaveXml()
| Type | Description |
|---|---|
| string | XML content of the document as a string |