Method XmlNode():hasNamespace() Foundation

Checks whether node belongs to a namespace.

:hasNamespace( [<cNamespace>] ) --> lHasNamespace
A character string with a namespace name. This parameter is optional. By default, :hasNamespace() checks whether the XmlNode() object belongs to any namespace. If a namespace name is specified in <cNamespace>, however, the method checks whether the XMLNode object belongs to this specific namespace instead.

A logical value. If no namespace is given and the XmlNode() object belongs to any namespace, or if the XMLNode object belongs to the specified namespace, the method returns .T. (true). Otherwise, the value .F. (false) is returned.


The method :hasNamespace() can be used to determine if a node object belongs to a namespace.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.