xml.DomDocument.createElementNS

Creates a XML namespace-qualified Element xml.DomNode object for an xml.DomDocument object.

Syntax

createElementNS(
   prefix STRING,
   elt STRING,
   ns STRING )
  RETURNS xml.DomNode
  1. prefix defines the prefix of the XML element, or NULL to use the default namespace.
  2. elt defines the name of the XML element.
  3. ns defines the namespace URI of the XML element.

Returns an xml.DomNode object.

Usage

Creates a XML namespace-qualified Element xml.DomNode object for this xml.DomDocument object, where prefix is the prefix of the XML element, or NULL to use the default namespace. elt is the name of the XML element, this cannot be NULL. ns is the namespace URI of the XML element, this cannot be NULL.

Returns the XML element xml.DomNode 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).