From RAD Studio API Documentation
Jump to: navigation, search


function NodeMatches(const Node: IDOMNode; const TagName, NamespaceURI: DOMString): Boolean;


extern DELPHI_PACKAGE bool __fastcall NodeMatches(const _di_IDOMNode Node, const System::UnicodeString TagName, const System::UnicodeString NamespaceURI)/* overload */;


Type Visibility Source Unit Parent
function public
Xml.xmldom Xml.xmldom


Indicates whether a specified node matches a given namespace and tag name.

Call NodeMatches to determine whether the node with the interface specified by Node refers to the same node as is described by the TagName and namespaceURI parameters.

NodeMatches returns True if:

  • The value of Node's namespaceURI property is the same as the namespaceURI parameter.
  • The local name or tag name of Node is the same as the TagName parameter.

Tip: Given an IXMLNode interface, you can obtain the IDOMNode interface required for the Node parameter by reading its DOMNode property.

See Also