Xml.xmldom.NodeMatches
Delphi
function NodeMatches(const Node: IDOMNode; const TagName, NamespaceURI: DOMString): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall NodeMatches(const _di_IDOMNode Node, const System::UnicodeString TagName, const System::UnicodeString NamespaceURI)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Xml.Xmldom.pas Xml.xmldom.hpp |
Xml.xmldom | Xml.xmldom |
Description
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.