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

TXMLConfig.ReadXMLFile

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

Declaration

Source position: laz2_xmlcfg.pas line 86

protected procedure TXMLConfig.ReadXMLFile(

  out ADoc: TXMLDocument;

  const AFilename: string

); virtual;

Arguments

ADoc

  

XML document with the content loaded in the method.

AFilename

  

File name containing the XML content for the configuration file.

Description

ReadXMLFile is a procedure used to read the XML content in AFilename into the TXMLDocument instance returned in ADoc. ReadXMLFile calls InvalidatePathCache to remove cached DOM nodes in the class instance. ReadXMLFile calls the ReadXMLFile method in the Laz2_XMLRead unit to load the file content into the XML document instance.

Use ReadFromStream to load the XML content in the class from a TStream instance.

Use WriteXMLFile or WriteToStream to store the XML content for the class instance.

See also

TXMLConfig.InvalidatePathCache

  

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

TXMLConfig.ReadFromStream

  

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

TXMLConfig.WriteToStream

  

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

TXMLConfig.WriteXMLFile

  

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

ReadXMLFile

  

Reads the content of an XML file into the specified XML document.


Version 4.0 Generated 2025-05-03 Home