Xml.XMLDoc.TXMLNode.GetAttributeNS

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetAttributeNS(const AttrName, NamespaceURI: DOMString): OleVariant;

C++

System::OleVariant __fastcall GetAttributeNS(const System::UnicodeString AttrName, const System::UnicodeString NamespaceURI);

Properties

Type Visibility Source Unit Parent
function protected
Xml.XMLDoc.pas
Xml.XMLDoc.hpp
Xml.XMLDoc TXMLNode

Description

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

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.

See Also