xml.getNamespaceUriForElement
| Syntax |
xml.getNamespaceUriForElement (adrelement, adrdoc, default="")
|
| Params |
adrelement is the address of an XML table corresponding to an element. adrdoc is the address of an XML table corresponding to the top-level element of the document. default is the optional default namespace URI for the XML document.
|
| Action |
Gets the namespace URI for the specified element.
|
| Returns |
A string.
|
| Examples |
local (adrxstruct = @xml.examples.namespaces2.tableStructure); xml.getNamespaceUriForElement (@adrxstruct^[1], adrxstruct) » "http://example.org/A/"
local (adrxstruct = @xml.examples.namespaces2.tableStructure); xml.getNamespaceUriForElement (@adrxstruct^[1][2], adrxstruct)
local (adrxstruct = @xml.examples.namespaces2.tableStructure); xml.getNamespaceUriForElement (@adrxstruct^[1][2][1], adrxstruct)
local (adrxstruct = @xml.examples.namespaces2.tableStructure); xml.getNamespaceUriForElement (@adrxstruct^[1][2][1][2], adrxstruct)
|
| Notes |
If there is no namespace prefix for the element, and no default namespace is declared in the XML document, then the value of the default parameter is returned. If the element has a namespace prefix, but there is no namespace declaration for the prefix, then an error is generated. This verb is implemented in script, and was released on 10/3/02.
|