Expand description
CSS selector to XPath 1.0 converter.
assert_eq!(xpathify::xpathify("div.item"), "//div[contains(concat(' ',normalize-space(@class),' '),' item ')]");
assert_eq!(xpathify::xpathify("a#main"), "//a[@id=\"main\"]");Functionsยง
- xpathify
- Convert a CSS selector string into the equivalent XPath 1.0 expression.