xml.DomDocument.createDocument

Constructor of a DomDocument with an XML root element.

Syntax

xml.DomDocument.createDocument(
   name STRING )
  RETURNING object xml.DomDocument
  1. name is the name of the XML Element.

Usage

Constructor of a xml.DomDocument with an XML root element; where name is the name of the XML Element.

Returns a DomDocument object or NULL.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.