Saves the current dataset data to a stream in the XML format compatible with ADO format.
Class
TMemDataSet
Syntax
procedure SaveToXML(Destination: TStream; IndentFormat: TXmlIndentFormat = ifSpace); overload;
Parameters
Destination
Holds a TStream object.
IndentFormat
Specifies how to format indentation in XML format streams when saving the dataset. The default value is ifSpace. For other values, see the
TXmlIndentFormat class.
Remarks
Call the SaveToXML method to save the current dataset data to a file or stream in XML format, compatible with ADO.
-
If the destination file already exists, it will be overwritten.
-
The destination stream remains open from the first call to SaveToXML until the dataset is closed. The file can be read by other applications while open, but it cannot be written to during that time.
When saving to a stream, ensure that a TStream object is created, and its position is set to the desired value.
See Also
- M:Devart.VirtualDac.TVirtualTable.LoadFromFile(System.String,System.Boolean,System.Boolean)
- M:Devart.VirtualDac.TVirtualTable.LoadFromStream(Borland.Vcl.TStream,System.Boolean,System.Boolean)