public function text($path=null, $pos=0) {
		if($path === null) {
			$res = '';
			foreach($this->items('/*') as $i)
				$res .= $i->text();
			return $res;
		}
		else
			return $this->item($path, $pos)->text();
	}
public function text($path=null, $pos=0) {
		if($path === null) {
			$res = '';
			foreach($this->items('/*') as $i)
				$res .= $i->text();
			return $res;
		}
		else
			return $this->item($path, $pos)->text();
	}
public function text ( $ path = null , $ pos = 0 ) { if ( $ path === null ) { $ res = '' ; foreach ( $ this -> items ( '/*' ) as $ i ) $ res .= $ i -> text ( ) ; return $ res ; } else return $ this -> item ( $ path , $ pos ) -> text ( ) ; }
Returns 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 text for a specific children .