Sign in Join
FPDoc Onlineexperiment

TXMLConfig.ReadXMLFile procedure

Member of TXMLConfigprotectedIn unit Laz2_XMLCfg

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.