DOM/DOMXPathNavigator.php
public function ToString()
	{
		if ( is_null( $this->domNode ) ) return "";
		if ( $this->domNode instanceof \DOMDocument )
		{
			$result = $this->domNode->saveXML( null );
			// Remove any initial PI
			$result = preg_replace( "/^<\?xml.*\?>\s/", "", $result );
			return $result;
		}
		else
		{
			// InnerXml?
			// return array_reduce(
			// 	iterator_to_array( $this->domNode->childNodes ),
			// 	function ( $carry, /** @var \DOMNode */ $child )
			// 	{
			// 		return $carry.$child->ownerDocument->saveXML( $child );
			// 	}
			// );
			$result = $this->domNode->ownerDocument->SaveXML( $this->domNode );
			return $result;
		}
	}
public function ToString()
	{
		if ( is_null( $this->domNode ) ) return "";
		if ( $this->domNode instanceof \DOMDocument )
		{
			$result = $this->domNode->saveXML( null );
			// Remove any initial PI
			$result = preg_replace( "/^<\?xml.*\?>\s/", "", $result );
			return $result;
		}
		else
		{
			// InnerXml?
			// return array_reduce(
			// 	iterator_to_array( $this->domNode->childNodes ),
			// 	function ( $carry, /** @var \DOMNode */ $child )
			// 	{
			// 		return $carry.$child->ownerDocument->saveXML( $child );
			// 	}
			// );
			$result = $this->domNode->ownerDocument->SaveXML( $this->domNode );
			return $result;
		}
	}
public function ToString ( ) { if ( is_null ( $ this -> domNode ) ) return "" ; if ( $ this -> domNode instanceof \ DOMDocument ) { $ result = $ this -> domNode -> saveXML ( null ) ; // Remove any initial PI
 $ result = preg_replace ( "/^<\?xml.*\?>\s/" , "" , $ result ) ; return $ result ; } else { // InnerXml?
 // return array_reduce(
 // 	iterator_to_array( $this->domNode->childNodes ),
 // 	function ( $carry, /** @var \DOMNode */ $child )
 // 	{
 // 		return $carry.$child->ownerDocument->saveXML( $child );
 // 	}
 // );
 $ result = $ this -> domNode -> ownerDocument -> SaveXML ( $ this -> domNode ) ; return $ result ; } }
Gets the text value of the current node.

@return string A string that contains the text value of the current node.
Gets the text value of the current node .