kekrozsak/vendor/symfony/symfony/src/Symfony/Component/CssSelector
Polonkai Gergely 9d0d2ce524 Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
..
Exception Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
Node Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
Tests Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
CHANGELOG.md Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
CssSelector.php Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
LICENSE Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
README.md Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
Token.php Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
TokenStream.php Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
Tokenizer.php Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
XPathExpr.php Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
XPathExprOr.php Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
composer.json Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
phpunit.xml.dist Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00

README.md

CssSelector Component

CssSelector converts CSS selectors to XPath expressions.

The component only goal is to convert CSS selectors to their XPath equivalents:

use Symfony\Component\CssSelector\CssSelector;

print CssSelector::toXPath('div.item > h4 > a');

Resources

This component is a port of the Python lxml library, which is copyright Infrae and distributed under the BSD license.

Current code is a port of https://github.com/SimonSapin/cssselect@fd2e70

You can run the unit tests with the following command:

phpunit