selectr: Translate CSS Selectors to XPath Expressions

Translates a CSS3 selector into an equivalent XPath expression. This allows us to use CSS selectors when working with the XML package as it can only evaluate XPath expressions. Also provided are convenience functions useful for using CSS selectors on XML nodes. This package is a port of the Python package 'cssselect' (<https://pythonhosted.org/cssselect/>).

Author
Simon Potter [aut, trl, cre], Simon Sapin [aut], Ian Bicking [aut]
Date of publication
2016-08-30 19:45:20
Maintainer
Simon Potter <simon@sjp.co.nz>
License
BSD_3_clause + file LICENCE
Version
0.3-0
URLs

View on CRAN

Man pages

css_to_xpath
Translate a CSS selector to an equivalent XPath expression.
querySelectorAll
Find nodes that match a group of CSS selectors in an XML...

Files in this package

selectr
selectr/inst
selectr/inst/demos
selectr/inst/demos/svg-mathml.svg
selectr/inst/CITATION
selectr/inst/NEWS.Rd
selectr/tests
selectr/tests/testthat
selectr/tests/testthat/test-shakespeare-xml2.R
selectr/tests/testthat/test-specificity.R
selectr/tests/testthat/test-parse-errors.R
selectr/tests/testthat/test-main.R
selectr/tests/testthat/test-xmllang-XML.R
selectr/tests/testthat/test-xmllang-xml2.R
selectr/tests/testthat/test-quoting.R
selectr/tests/testthat/test-translation.R
selectr/tests/testthat/test-querySelector-xml2.R
selectr/tests/testthat/test-select-xml2.R
selectr/tests/testthat/test-pseudo.R
selectr/tests/testthat/test-querySelector-XML.R
selectr/tests/testthat/test-shakespeare-XML.R
selectr/tests/testthat/test-series.R
selectr/tests/testthat/test-tokenizer.R
selectr/tests/testthat/test-parser.R
selectr/tests/testthat/test-select-XML.R
selectr/tests/test-all.R
selectr/NAMESPACE
selectr/R
selectr/R/xpath.R
selectr/R/zzz.R
selectr/R/parser.R
selectr/R/main.R
selectr/README.md
selectr/MD5
selectr/DESCRIPTION
selectr/LICENCE
selectr/man
selectr/man/css_to_xpath.Rd
selectr/man/querySelectorAll.Rd
selectr/.Rinstignore