comp • gb.xml • xmlwriter • open

XmlWriter.Open (gb.xml)

Sub Open ( [ fileName As String, Indent As Boolean, Encoding As String ] )

Opens an XML for writting. You have to call it prior to use any of the XmlWriter object methods.

  • FileName: can be a valid path name, if you want to directly write an XML file, or a NULL, if you want to receive it as an string calling EndDocument when all the document has been written.

  • Indent: if True, the file will be formatted using tabulations and carry returns, in order to be more "human readable". If false, the file will not be formatted.

  • Encoding: By default, XmlWriter uses UTF-8 encoding to write the file. You can specify any different encoding, if it is supported by libxml2.