RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TXMLNode.GetNamespaceURI Method

Returns the URI for the namespace used in the qualified node name.

Pascal
function GetNamespaceURI: DOMString;
C++
__fastcall DOMString GetNamespaceURI();

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. 

 

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