This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/CssSelector/README.md

24 lines
623 B
Markdown
Raw Normal View History

CssSelector Component
=====================
2011-12-18 13:18:13 +00:00
CssSelector converts CSS selectors to XPath expressions.
2011-12-18 13:18:13 +00:00
The component only goal is to convert CSS selectors to their XPath
equivalents:
2011-12-18 13:18:13 +00:00
use Symfony\Component\CssSelector\CssSelector;
2011-12-18 13:18:13 +00:00
print CssSelector::toXPath('div.item > h4 > a');
Resources
---------
Unit tests:
https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/CssSelector
2011-12-18 13:18:13 +00:00
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