RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDOMNode.namespaceURI Property

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

Pascal
property namespaceURI: DOMString;
C++
__property DOMString namespaceURI;

Read namespaceURI to determine the URI for the namespace assigned to the node when it is created. If a namespace URI was not given when the node was created, namespaceURI is nil (Delphi) or NULL (C++). That is, namespaceURI does not supply a value if the namespace URI must be computed from namespace declarations in scope. 

Only element and attribute nodes can have a namespaceURI value. For any other node types, namespaceURI is always nil (Delphi) or NULL (C++). Attribute nodes do not inherit a namespace from the element node to which they are attached. If an attribute is not explicitly given a namespace, its namespaceURI is nil (Delphi) or NULL (C++).

Note: namespaceURI is nil (Delphi) or NULL (C++) for nodes created with a DOM level 1 interface such as the document's createElement method, even if they are element or attribute nodes.
 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!