Official Content

Writes the XML declaration using version 1.0 and ISO-8859-1 coding.


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

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

   Must be 0 or 1; its optional.


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


  • 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: November 2023 | © GeneXus. All rights reserved. GeneXus Powered by Globant