Tests if the default namespace associated with the specified element is equal to one of the specified namespaces.
The namespaces are specified indirectly using prefixes defined in the XML Type Configuration File.
Note: To test the default namespace directly, use
the DSMElement.defaultNS
property, for example:
element.dsmElement.defaultNS == "namespace URI"
element
If not specified, the generator context element is assumed,
i.e. the same as the call: testDefaultNS(contextElement, prefixes)
prefixes
Each prefix name should be declared in the XML Type Configuration File as part of the definition of the XML Type associated with the given template. The unknown prefix names will be ignored.
A special asterisk prefix name ("*"
) represents the global namespace.
That is, calling
qName.belongsToNS("*")
qName.namespaceURI == ""
true
if the default namespace associated with the specified element
equals to one of the specified namespaces; false
otherwise.
getNamespaceURI(), belongsToNS()