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. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).