pub fn css_to_xpath(
css: &str,
prefix: &str,
mode: Mode,
) -> Result<String, Error>Expand description
Translate a CSS selector to an XPath 1.0 expression.
§Arguments
css— A CSS selector string.prefix— An XPath path prefix prepended to the result (e.g."descendant-or-self::"). Pass""for none.mode— The translator flavour:Mode::Generic,Mode::Html, orMode::Xhtml.
§Errors
Returns an Error when the selector is syntactically invalid or uses
an unsupported construct.