Exemplo n.º 1
0
 /**
  * Translates a CSS expression to its XPath equivalent.
  * Optionally, a prefix can be added to the resulting XPath
  * expression with the $prefix parameter.
  *
  * @param mixed  $cssExpr The CSS expression.
  * @param string $prefix  An optional prefix for the XPath expression.
  *
  * @return string
  */
 public static function toXPath($cssExpr, $prefix = 'descendant-or-self::')
 {
     $converter = new Converter(self::$html);
     return $converter->toXPath($cssExpr, $prefix);
 }