src/Danmichaelo/QuiteSimpleXMLElement/QuiteSimpleXMLElement.php
public function text($path = '.', $trim = true)
    {
        $text = strval($this->first($path));

        return $trim ? trim($text) : $text;
    }
public function text($path = '.', $trim = true)
    {
        $text = strval($this->first($path));

        return $trim ? trim($text) : $text;
    }
public function text ( $ path = '.' , $ trim = true ) { $ text = strval ( $ this -> first ( $ path ) ) ; return $ trim ? trim ( $ text ) : $ text ; }
Get the text of the first node matching an XPath query. By default,
the text will be trimmed, but if you want the untrimmed text, set
the second parameter to False.

@param string $path
@param bool   $trim
@return string
Get the text of the first node matching an XPath query . By default the text will be trimmed but if you want the untrimmed text set the second parameter to False .