xml.DomDocument.createAttributeNS
Creates a XML namespace-qualified Attribute
xml.DomNode
object for this xml.DomDocument
object.
Syntax
createAttributeNS(
prefix STRING,
elt STRING,
ns STRING )
RETURNS xml.DomNode
- prefix defines the prefix of the XML attribute.
- elt defines the name of the XML attribute.
- ns defines the namespace URI of the XML attribute.
Returns an xml.DomNode
object.
Usage
Creates a XML namespace-qualified Attribute xml.DomNode
object for this
xml.DomDocument
object where prefix is the prefix of the XML
attribute, it cannot be NULL
; elt is the name of the XML
attribute; it cannot be NULL
; ns is the namespace URI of the XML
attribute, it cannot be NULL
.
Returns the XML element xml.DomNode
object.
To create a namespace declaration attribute use xmlns
as the prefix and
http://www.w3.org/XML/1998/namespace
as the namespace. Using declareNamespace
instead
is recommended.
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).