Xml.XMLDoc.TXMLNode.GetNamespaceURI
Delphi
function GetNamespaceURI: DOMString;
C++
System::UnicodeString __fastcall GetNamespaceURI();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Xml.XMLDoc.pas Xml.XMLDoc.hpp |
Xml.XMLDoc | TXMLNode |
Description
Returns the URI for the namespace used in the qualified node name.
Use the TXMLNode object's IXMLNode interface to call the protected GetNamespaceURI method. GetNamespaceURI returns the URI for the namespace that should be used to interpret the node's name.
Only element and attribute nodes can have a namespace URI value. For any other node type, GetNamespaceURI returns nil (Delphi) or NULL (C++).
The namespace URI is only available if it is explicitly assigned when the node is created. By default, TXMLNode does not assign namespaces to the new nodes it creates.