RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IXMLDocument.SaveToXML Method (DOMString)

Saves the XML document to a string-type variable.

Pascal
procedure SaveToXML(var XML: DOMString); overload;
procedure SaveToXML(var XML: WideString); overload;
procedure SaveToXML(var XML: UTF8String); overload;
C++
__fastcall SaveToXML(DOMString XML);
__fastcall SaveToXML(BSTR XML);
__fastcall SaveToXML(UTF8String XML);

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!