diff --git a/publiccode.yml b/publiccode.yml index 6d89346..18ae9da 100644 --- a/publiccode.yml +++ b/publiccode.yml @@ -45,7 +45,7 @@ description: shortDescription: >- Python library that provides XPath 1.0/2.0 parsers and selectors for ElementTree and lxml - longDescription: > + longDescription: | This is a library for Python 2.7/3.5+ that provides XPath 1.0 and 2.0 selectors for Python's ElementTree XML data structures, both for the standard **ElementTree** library and for the **lxml** library. For lxml @@ -57,17 +57,24 @@ description: You can install the package with _pip_ in a Python 2.7 or Python 3.5+ environment: - ~~~~ + + ~~~~ + pip install elementpath - ~~~~ + + ~~~~ + For using it import the package and apply the selectors on ElementTree nodes: - ~~~~ + + ~~~~ + >>> import elementpath >>> from xml.etree import ElementTree >>> root = ElementTree.XML('') >>> elementpath.select(root, '/A/B2/\*') [, , ] - ~~~~ + + ~~~~ features: - XPath 1.0 and XPath 2.0 implementations