Method XmlNode():hasNamespace() Foundation

Checks whether node belongs to a namespace.

Syntax
:hasNamespace( [<cNamespace>] ) --> lHasNamespace
Parameters
<cNamespace>
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.
Return

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.

Description

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

Feedback

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.