xml.DomDocument.CreateDocument
Constructor of an xml.DomDocument with an XML root
element.
Syntax
xml.DomDocument.CreateDocument(
name STRING )
RETURNS xml.DomDocument
- name defines the XML element.
Returns an xml.DomDocument object.
Usage
Constructor of an xml.DomDocument with an XML root element; where
name is the name of the XML Element.
Returns an xml.DomDocument object.
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).
Example
Create an xml.DomDocument with an initial root node named ARoot:
DEFINE doc xml.DomDocument
LET doc = xml.DomDocument.CreateDocument("ARoot")