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"
Parameters:

element

The element whose default namespace is to be tested.

If not specified, the generator context element is assumed, i.e. the same as the call: testDefaultNS(contextElement, prefixes)

prefixes
The string containing the semicolon (;) separated list of prefix names representing the namespaces.

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("*")
is the same as comparing
qName.namespaceURI == ""
Returns:
true if the default namespace associated with the specified element equals to one of the specified namespaces; false otherwise.

See Also:

getNamespaceURI(), belongsToNS()

${include ../../../refs/xml_names.htm}