Mono Class Library: System.Xml.XmlDocument Overview | Members

System.Xml.XmlDocument.Save Method

Writes the entire document into argument System.IO.TextWriter. [Edit]

public virtual void Save (System.IO.TextWriter writer)

Parameters

writer
A System.IO.TextWriter object to save the entire document. [Edit]

Remarks

Writes the entire document into argument TextWriter. This method internally creates an XmlWriter instance and invokes XmlDocument.Save(XmlWriter) method.

This method does not close the argument TextWriter.

With this method, the output XML is indented.

The output XML might contain XML declaration, in the same way as System.Xml.XmlTextWriter does, if it is required.

Note that this method does not use XmlDeclaration.Encoding property to specify output encoding.

[Edit]

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0