|
13 gadus atpakaļ | |
---|---|---|
.. | ||
Exception | 13 gadus atpakaļ | |
Node | 13 gadus atpakaļ | |
CssSelector.php | 13 gadus atpakaļ | |
README.md | 13 gadus atpakaļ | |
Token.php | 13 gadus atpakaļ | |
TokenStream.php | 13 gadus atpakaļ | |
Tokenizer.php | 13 gadus atpakaļ | |
XPathExpr.php | 13 gadus atpakaļ | |
XPathExprOr.php | 13 gadus atpakaļ | |
composer.json | 13 gadus atpakaļ |
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');
Unit tests:
https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/CssSelector
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 http://codespeak.net/svn/lxml/trunk/src/lxml/cssselect.py@71545