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

TXMLConfig.WriteToStream

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

Declaration

Source position: laz2_xmlcfg.pas line 107

public procedure TXMLConfig.WriteToStream(

  s: TStream

);

Arguments

s

  

TStream instance where the XML content in Document is stored in the method.

Description

WriteToStream is a procedure used to write the XML content for the configuration file to the TStream instance specified in S. WriteToStream checks the Document property to ensure that a valid TXMLDocument instance has been assigned to the member. When Document is unassigned (contains Nil), the CreateConfigNode method is called to allocate a document instance with the required CONFIG document element.

The WriteXMLFile routine in the Laz2_XMLWrite unit is called to store the XML document to the TStream specified in S using the WriteFlags for the class instance.

See also

TXMLConfig.Document

  

XML document used for the class instance.

TXMLConfig.WriteFlags

  

TXMLWriteFlags for the XML configuration file.

WriteXMLFile

  

Writes an XML document to a file, text file, or stream.


Version 4.0 Generated 2025-05-03 Home