Xml.XMLDoc.TXMLNode.FindNamespaceDecl
Delphi
function FindNamespaceDecl(const NamespaceURI: DOMString): IXMLNode;
C++
Xml::Xmlintf::_di_IXMLNode __fastcall FindNamespaceDecl(const System::UnicodeString NamespaceURI);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Returns the attribute node that declares a specified Namespace URI.
Use the TXMLNode object's IXMLNode interface to call the protected FindNamespaceDecl method. FindNamespaceDecl searches the node hierarchy that contains this node for an attribute that specifies the mapping between a namespace prefix and the namespace URI specified by NamespaceURI. If it finds such a mapping, FindNamespaceDecl returns the interface for the Attribute node. If it does not find a mapping, FindNamespaceDecl returns nil (Delphi) or NULL (C++).
NamespaceURI is the namespace URI to locate.