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

System.Xml.XmlDocument.Save Method

Writes the entire document into argument System.Xml.XmlWriter. [Edit]

public virtual void Save (XmlWriter xmlWriter)

Parameters

xmlWriter
An System.Xml.XmlWriter to save the entire document. [Edit]

Remarks

Saves the entire document into the argument System.Xml.XmlWriter. It internally invokes XmlNode.WriteTo method for each child of the document.

This method does not close argument XmlWriter.

This method does not modify properties of the argument XmlWriter such as XmlTextWriter.Formatting. This method does not write XML declaration if it explicitly exists in this XmlDocument.

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