Save()

XmlDocument::Save(String) method

Saves the XML document to the specified file. If the specified file exists, this method overwrites it.

virtual void System::Xml::XmlDocument::Save(String filename)

Arguments

ParameterTypeDescription
filenameStringThe location of the file where you want to save the document.

XmlDocument::Save(SharedPtr<IO::Stream>) method

Saves the XML document to the specified stream.

virtual void System::Xml::XmlDocument::Save(SharedPtr<IO::Stream> outStream)

Arguments

ParameterTypeDescription
outStreamSharedPtr<IO::Stream>The stream to which you want to save.

XmlDocument::Save(SharedPtr<IO::TextWriter>) method

Saves the XML document to the specified TextWriter.

virtual void System::Xml::XmlDocument::Save(SharedPtr<IO::TextWriter> writer)

Arguments

ParameterTypeDescription
writerSharedPtr<IO::TextWriter>The TextWriter to which you want to save.

XmlDocument::Save(SharedPtr<XmlWriter>) method

Saves the XML document to the specified XmlWriter.

virtual void System::Xml::XmlDocument::Save(SharedPtr<XmlWriter> w)

Arguments

ParameterTypeDescription
wSharedPtr<XmlWriter>The XmlWriter to which you want to save.

See Also