Xml.XMLIntf.IXMLDocument.SaveToXML

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure SaveToXML(var XML: DOMString); overload;
procedure SaveToXML(var XML: WideString); overload;
procedure SaveToXML(var XML: UTF8String); overload;

C++

virtual void __fastcall SaveToXML(System::UnicodeString &XML) = 0 /* overload */;
virtual void __fastcall SaveToXML(System::WideString &XML) = 0 /* overload */;
virtual void __fastcall SaveToXML(System::UTF8String &XML) = 0 /* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLDocument

Description

Saves the XML document to a string-type variable.

Call SaveToXML to save the contents of the XML document to the string-type variable specified by XML. SaveToXML writes the contents of XML document using UTF-8 or UTF-16 as an encoding system, depending on the type of the XML parameter.

Unlike the XML property, which lets you write individual lines from the XML document, SaveToXML writes the entire text of the XML document.

See Also