Sign in Join
FPDoc Onlineexperiment

TXMLObjectWriter.WriteString procedure

Member of TXMLObjectWriterpublicIn unit Laz_XMLStreaming

Serializes a string value using the XML format for the object writer.

Declaration

pascal
procedure WriteString(const Value: TXMLObjectWriterString); override

Arguments

Value

String value stored in the method.

Description

WriteString is an overridden method in TXMLObjectWriter used to store the specified string value to the XML storage format used in the writer class. WriteString calls GetPropertyElement to get or create a TDOMElement stack entry where the Value argument is stored. In the TDOMElement, the string value is stored in a tag with the name 'string' using the 'value' attribute to store the passed value.

WriteString implements the abstract virtual method defined in TAbstractObjectWriter.

Modified in LazUtils version 3.0 to use the TXMLObjectWriterString type instead of the String type in the Value argument.

See also

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