Xml.XMLDoc.TXMLDocument.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++

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

Properties

Type Visibility Source Unit Parent
procedure
function
public
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLDocument

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

Code Examples