py-dom-xpathPure Python XPath implementation | |
Download |
py-dom-xpath Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Damien Neil
- Publisher web site:
- http://code.google.com/u/damien.neil/
py-dom-xpath Tags
py-dom-xpath Description
Pure Python XPath implementation py-dom-xpath is a pure Python implementation of XPath 1.0. It supports almost all XPath 1.0, with the main exception being the namespace axis. It operates on DOM 2.0 nodes, and works well with xml.dom.minidom.py-dom-xpath requires Python 2.5 or greater.Simple queries are easy:>>> xpath.find('//item', doc)Namespaces are fully supported (although the namespace axis is not):>>> context = xpath.XPathContext()>>> context.namespaces = 'http://python.example.org/'>>> context.findvalues('//py:skit/@name', doc)XPath variables are also supported:>>> xpath.find('//chapter', doc, name='Python')py-dom-xpath uses the Yapps 2 parser generator by Amit J. Patel. Requirements: · Python
py-dom-xpath Related Software