[Overview][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XMLCfg' (#lazutils)

TXMLConfig.WriteXMLFile

Writes XML configuration data in Document to the specified file name.

Declaration

Source position: laz2_xmlcfg.pas line 87

protected procedure TXMLConfig.WriteXMLFile(

  ADoc: TXMLDocument;

  const AFileName: string

); virtual;

Arguments

ADoc

  

Document with the XML content written in the method.

AFileName

  

File name where the XML content is stored.

Description

WriteXMLFile is a procedure used to write the XML content in the Document property to the file specified in AFilename. WriteXMLFile calls the WriteXMLFile routine in LazUtils to write the XML content using the WriteFlags defined in the class instance. The InvalidateFileStateCache routine is called to invalidate a file cache entry for the specified file name.

Use WriteToSteam to store the XML content in Document to a TStream instance.

See also

TXMLConfig.WriteToStream

  

Writes the XML content for the configuration file to the specified stream instance.

TXMLConfig.ReadXMLFile

  

Reads the XML content from the specified file into a TXMLDocument instance.

TXMLConfig.ReadFromStream

  

Reads the XML content in Document from the specified stream instance.


Version 4.0 Generated 2025-05-03 Home