xml.DomDocument.CreateDocumentNS
Constructor of a xml.DomDocument
with a root
namespace-qualified XML root element
Syntax
xml.DomDocument.CreateDocumentNS(
prefix STRING,
name STRING,
ns STRING )
RETURNS xml.DomDocument
- prefix defines the prefix of the XML Element or NULL.
- name defines the XML element.
- ns is the namespace of the XML Element.
Returns an xml.DomDocument
object.
Usage
Constructor of a xml.DomDocument
with a root namespace-qualified XML root
element where prefix is the prefix of the XML element or NULL
,
name is the name of the XML element, and ns is the namespace
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 a xml.DomDocument
with an initial root node named "List"
with abc
as the prefix and http://www.mysite.com/xmlapi
as the
namespace:
xml.domdocument.createDocumentNS("abc","List","http://www.mysite.com/xmlapi")
Produces:
<abc:List xmlns:abc="http://www.mysite.com/xmlapi">
[...]
</abc:List>