RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetAttributeNS Method

Returns the value of a specified attribute when you must explicitly specify the namespace for the attribute.

Pascal
function GetAttributeNS(const AttrName: DOMString; const NamespaceURI: DOMString): OleVariant;
C++
__fastcall OleVariant GetAttributeNS(const DOMString AttrName, const DOMString NamespaceURI);

Use the TXMLNode object's IXMLNode interface to call the protected GetAttributeNS method. GetAttributeNS returns the value of an attribute of this node. 

AttrName is the name of the attribute. 

NamespaceURI identifies the namespace in which the attribute resides. 

GetAttributeNS returns the value of the specified attribute. If AttrName and NamespaceURI do not identify an attribute of this node, GetAttributeNS returns a Null Variant.  

If this node is not an element node, GetAttributeNS raises an EXMLDocError exception. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!