Skip to content

QualifiedNode - cXMLDOMNamedNodeMap

Returns an object handle to an attribute node that matches the NamespaceURI and Basename

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
sNameSpace String The attribute NamespaceURI
sBaseName String the name of the attribute node

Syntax

Function QualifiedNode String sNameSpace String sBaseName Returns Handle

Call Example

Get QualifiedNode sNameSpace sBaseName to HandleVariable

Description

QualifiedNode returns a named node (NamespaceURI and BaseName) from an attributelist.

move "http://www.dataaccess.com/Test/CustomerList" to sNS
get AttributeNodes of hoEle to hoNamedNodeList
if hoNamedNodeList begin
   get QualifiedNode of hoNamedNodeList sNS "Type" to hoAttr
   if (hoAttr=0) send Stop_Box "attribute not found"
   else send Destroy of hoAttr
   send Destroy of hoNamedNodeList 
end

Namespaces

This message finds a node in a document that is namespace aware. This requires that you always pass a NameSpaceURI. It is suggested that you always create documents using namespace methods (the methods that end in NS) and that you no longer use the non-namespace methods.

If your document does not have any namespaces or an element within the document does not have a namespace, its namespace is considered to be global and its NamespaceURI is represented as an empty string (""). In such a case you can and should use these namespace aware messages passing an empty string for the NameSpaceURI.

Attributes and Namespaces

Attributes are less likely to use namespaces (i.e., they are more likely to use the global namespace) which means you will often be passing the "" NamespaceURI string.Attributes never use the default namespace (xmlns="xx"). If the attribute does not have a prefix, it is in the global namespace.A Prefix will get added to the attribute name by adding the prefix to the sName (e.g., sName="m:table").

See Also

RemoveQualifiedNode

Return Value

Returns the handle of the matching attribute object or zero if no match is found