TXMLConfig.WriteToStream procedure
Writes the XML content for the configuration file to the specified stream instance.
Declaration
procedure 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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
