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

System.Xml.XmlDocument.Save Method

Writes the entire document into specified file. [Edit]

public virtual void Save (string filename)

Parameters

filename
A filename to save the entire XML document. [Edit]

Remarks

It creates a file from the argument filename and writes the entire document into the file. This method internally creates an XmlWriter instance considering XmlDeclaration.Encoding property, and invokes XmlDocument.Save(XmlWriter) method.

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 there is no corresponding interface member in any of W3C Document Object Model specifications.

[Edit]

Requirements

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