WriteStartDocument Method

Official Content
This documentation is valid for:
Writes the XML declaration using version 1.0 and ISO-8859-1 coding.

Syntax

&DataType.WriteStartDocument( [Encoding[, StandAlone ]] )

Where:
Encoding
   Corresponds to the encoding to be used in the XML file. Must be a text. Its optional.

StandAlone
   Must be 0 or 1; its optional.

Description

Optionally, you can indicate a text value to set the encoding of the XML file. The default value for the encoding is "ISO-8859-1".

Optionally also, you can indicate an integer (0/1) as a Boolean value to be used in the standalone declaration.

This method must be called at the start of the document’s generation (after the open() and before any other method).

Scope

Extended Data Types: XmlWriter
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

See Also

Xmlwriter Data Type