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