Xml.xmldom.SameNamespace

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SameNamespace(const Node: IDOMNode; const namespaceURI: DOMString): Boolean;
function SameNamespace(const URI1, URI2: DOMString): Boolean; overload;

C++

extern DELPHI_PACKAGE bool __fastcall SameNamespace(const _di_IDOMNode Node, 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 is defined within a specified namespace.

Call SameNamespace to determine whether the two parameters identify the same namespace.

Using the first syntax, the Node parameter identifies a node and the namespaceURI parameter a namespace. SameNamespace checks whether the node is defined in the specified namespace.

Using the second syntax, both parameters are namespace URI values. SameNamespace checks whether they both identify the same namespace.

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

See Also