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

TXMLObjectWriter.WriteString

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

Declaration

Source position: laz_xmlstreaming.pas line 85

public procedure TXMLObjectWriter.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.

Version info

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

See also

TAbstractObjectWriter


Version 4.0 Generated 2025-05-03 Home