public function text($path=null, $pos=0) {
		if($this->xpath === null)
			return null;
		if(!$path)
			return trim($this->domnode->nodeValue);
		else {
			$item = $this->item($path, $pos);
			if($item === null)
				return null;
			return $item->text();
		}
	}
public function text($path=null, $pos=0) {
		if($this->xpath === null)
			return null;
		if(!$path)
			return trim($this->domnode->nodeValue);
		else {
			$item = $this->item($path, $pos);
			if($item === null)
				return null;
			return $item->text();
		}
	}
public function text ( $ path = null , $ pos = 0 ) { if ( $ this -> xpath === null ) return null ; if ( ! $ path ) return trim ( $ this -> domnode -> nodeValue ) ; else { $ item = $ this -> item ( $ path , $ pos ) ; if ( $ item === null ) return null ; return $ item -> text ( ) ; } }
Returns the text for a specific children.

@param string path Path to the node.
@param integer pos Element position.

@return string The text of the node.
Returns the text for a specific children .