Mono Class Library: System.Xml.XmlDocument Overview | MembersSystem.Xml.XmlDocument.Save Method |
Writes the entire document into argument System.IO.TextWriter. [Edit]
|
- writer
- A System.IO.TextWriter object to save the entire document. [Edit]
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]
Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0