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

System.Xml.XmlDocument.Save Method

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

public virtual void Save (System.IO.Stream outStream)

Parameters

outStream
A System.IO.Stream object to save the entire document. It must be writable. [Edit]

Remarks

Writes the entire document into argument Steram. This method internally creates an XmlWriter instance considering XmlDeclaration.Encoding property, and invokes XmlDocument.Save(XmlWriter) method.

This method does not close the argument Steram.

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.

[Edit]

Requirements

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