Official Content

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.

Scope

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

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".
  • You also have the option to 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).

See Also

Xmlwriter Data Type


Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant