WriteStartDocument Method

Official Content
This documentation is valid for:
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.


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).


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