Returns the object handle of an atttribute node whose NamespaceURI and BaseName matches the passed values
Type: Function
Return Data Type: Handle
Parameters:
string sNameSpace string sBaseName
Parameter | Description
|
sNamespace | Namespace-URI string (e.g. http://dataaccess.com/MyURI) |
sBaseName | Name of attribute excluding the prefix
|
Return ValueReturns the object handle of the attribute node whose NamespaceURI and BaseName matches the passed values. Returns zero if no match is found.
Syntax
Function AttributeValueNodeNS string sNameSpace string sBaseName Returns Handle
Get AttributeValueNodeNS sNameSpace sBaseName to HandleVariable |
Description
AttributeValueNodeNS is used to get the attribute node in an element node that matches the passed NamespaceURI and BaseName. Normally, you never need to return an attribute node. If you just need to get the attribute value use the AttributeValueNS method.
Attributes and Namespaces
This message creates a node and a document that is namespace aware. This requires that you always pass a NameSpaceURI.
- Attributes are less likely to use namespaces (i.e., they are more likely to use the global namespace).
- Attributes never use the default namespace (xmlns="xx"). If the attribute does not have a prefix, it is in the global namespace.
- 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 use these namespace aware messages passing an empty string for the NameSpaceURI.
- When parsing XML documents with namespaces you should always search by NamespaceURI and BaseName. You should not use the element's prefix and you should not attempt to ignore the NamespaceURI.
See Also
AttributeValueNode | AttributeValueNS | AddAttributeNS