public function queryToValue($query, $contextNode = null) { $xpath = new DOMXpath($this); return $xpath->queryToValue($query, $contextNode); }