public function MoveToFirstNamespace( $namespaceScope = XPathNamespaceScope::Local )
	{
		if	( is_null( $this->domNode ) ) return false;
		if ( $this->domNode->nodeType != XML_ELEMENT_NODE && $this->domNode->nodeType != XML_DOCUMENT_NODE ) return false;

		$expression = $namespaceScope == XPathNamespaceScope::Local
			? 'namespace::*[not(. = ../../namespace::*)]'
			: 'namespace::*';

		$xpath = new \DOMXPath( $this->domNode->nodeType == XML_DOCUMENT_NODE ? $this->domNode : $this->domNode->ownerDocument );
		$namespaces = $xpath->query( $expression, $this->domNode );

		if ( ! $namespaces || $namespaces->length == 0 ) return false;

		$this->domNode = $namespaces[ $namespaces->length - 1 ];
		return true;
	}
public function MoveToFirstNamespace( $namespaceScope = XPathNamespaceScope::Local )
	{
		if	( is_null( $this->domNode ) ) return false;
		if ( $this->domNode->nodeType != XML_ELEMENT_NODE && $this->domNode->nodeType != XML_DOCUMENT_NODE ) return false;

		$expression = $namespaceScope == XPathNamespaceScope::Local
			? 'namespace::*[not(. = ../../namespace::*)]'
			: 'namespace::*';

		$xpath = new \DOMXPath( $this->domNode->nodeType == XML_DOCUMENT_NODE ? $this->domNode : $this->domNode->ownerDocument );
		$namespaces = $xpath->query( $expression, $this->domNode );

		if ( ! $namespaces || $namespaces->length == 0 ) return false;

		$this->domNode = $namespaces[ $namespaces->length - 1 ];
		return true;
	}
public function MoveToFirstNamespace ( $ namespaceScope = XPathNamespaceScope :: Local ) { if ( is_null ( $ this -> domNode ) ) return false ; if ( $ this -> domNode -> nodeType != XML_ELEMENT_NODE && $ this -> domNode -> nodeType != XML_DOCUMENT_NODE ) return false ; $ expression = $ namespaceScope == XPathNamespaceScope :: Local ? 'namespace::*[not(. = ../../namespace::*)]' : 'namespace::*' ; $ xpath = new \ DOMXPath ( $ this -> domNode -> nodeType == XML_DOCUMENT_NODE ? $ this -> domNode : $ this -> domNode -> ownerDocument ) ; $ namespaces = $ xpath -> query ( $ expression , $ this -> domNode ) ; if ( ! $ namespaces || $ namespaces -> length == 0 ) return false ; $ this -> domNode = $ namespaces [ $ namespaces -> length - 1 ] ; return true ; }
When overridden in a derived class, moves the XPathNavigator to the first namespace node that matches the
XPathNamespaceScope specified.

@param XPathNamespaceScope namespaceScope : An XPathNamespaceScope value describing the namespace scope.

@return bool	Returns true if the XPathNavigator is successful moving to the first namespace node; otherwise, false.
If false, the position of the XPathNavigator is unchanged.
When overridden in a derived class moves the XPathNavigator to the first namespace node that matches the XPathNamespaceScope specified .