From RAD Studio API Documentation
Jump to: navigation, search


property namespaceURI: DOMString read get_namespaceURI;         { DOM Level 2 }


__property System::UnicodeString namespaceURI = {read=_scw_get_namespaceURI};


Type Visibility Source Unit Parent
property public
Xml.xmldom IDOMNode


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

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.

See Also