xml.DomDocument.declareNamespace

Forces namespace declaration to a XML Element DomNode for a DomDocument object.

Syntax

declareNamespace(
   node xml.DomNode,
   alias STRING,
   ns STRING )
  1. node defines the XML Element DomNode that carries the namespace definition.
  2. alias defines the alias of the namespace to declare.
  3. ns defines the URI of the namespace to declare.

Usage

Forces namespace declaration to a XML Element DomNode for this DomDocument object; node is the XML Element DomNode that carries the namespace definition; alias is the alias of the namespace to declare, or NULL to declare the default namespace; ns is the URI of the namespace to declare (can only be NULL if alias is NULL).

Important:

This method is not part of W3C standard API.

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