RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
xmldom.SameNamespace Function

Indicates whether a specified node is defined within a specified namespace.

Pascal
function SameNamespace(const Node: IDOMNode; const namespaceURI: WideString): Boolean; overload;
function SameNamespace(const URI1: WideString; const URI2: WideString): Boolean; overload;
C++
Boolean SameNamespace(const IDOMNode Node, const BSTR namespaceURI);
Boolean SameNamespace(const BSTR URI1, const BSTR URI2);

xmldom

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.
 

 

ExtractLocalName 

ExtractPrefix 

IXMLNode 

SameNamespace 

IXMLNode 

IXMLNode

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