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

TXMLConfig.Filename

File name used to read or write the XML content in the class instance.

Declaration

Source position: laz2_xmlcfg.pas line 152

published property TXMLConfig.Filename : string
  read FFilename
  write SetFilename;

Description

Filename is a String property which specifies the file name on the local file system where the content for the XML configuration file is stored. Changing the value in Filename causes the DOM node cache to be cleared by calling the InvalidatePathCache method.

If Document contains a valid TXMLDocument instance, the Flush method is called to write any pending changes to disk. The FreeDoc method is called to re-initialize the Document instance. The XML content in Document is then reloaded using the file or string content as required.

Remark: No actions are performed in the method when the value in Filename is assigned as the component is loaded using the LCL streaming mechanism.

See also

TXMLConfig.InvalidatePathCache

  

Removes cached DOM nodes for paths in the XML configuration file.

TXMLConfig.Flush

  

Forces the XML content for the configuration file to be written to Filename.

TXMLConfig.FreeDoc

  

Frees the TXMLDocument instance for the XML configuration file.

TXMLConfig-PathSyntax

  

TXMLConfig Path Syntax.


Version 4.0 Generated 2025-05-03 Home