xml.DomDocument.declareNamespace
Forces namespace declaration to a XML Element
xml.DomNode for this xml.DomDocument object.
Syntax
declareNamespace(
node xml.DomNode,
alias STRING,
ns STRING ) - node defines the XML Element DomNode that carries the namespace definition.
- alias defines the alias of the namespace to declare.
- ns defines the URI of the namespace to declare.
Usage
Forces namespace declaration to a XML Element DomNode for this xml.DomDocument object; node is the XML
Element xml.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).