[XML-SIG] xpath

Uche Ogbuji uche.ogbuji at fourthought.com
Tue Sep 7 05:45:39 CEST 2004

On Tue, 2004-08-31 at 08:31, Ajay wrote:
> hi!
> is there a Python implementation of xpath that doesn't use any C code and
> is purely in Python? Is there one as a standalone package.

I think the XPath impl in PyXML only uses C for the boolean type.  If
you're on Python 2.3+, you could easily tweak it to use the built-in
bool instead.

Also, ElementTree is pure Python and offers partial XPath support.

Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Meet me at XMLOpen Sept 21-23 2004, Cambridge, UK.  http://xmlopen.org

A hands-on introduction to ISO Schematron - http://www-106.ibm.com/developerworks/edu/x-dw-xschematron-i.html
Practical (Python) SAX Notes - http://www.xml.com/pub/a/2004/08/11/py-xml.html
XML circles the globe - http://www.javareport.com/article.asp?id=9797
Element structures for names and addresses - http://www.ibm.com/developerworks/xml/library/x-elemdes.html
Commentary on "Objects. Encapsulation. XML?" - http://www.adtmag.com/article.asp?id=9090
Harold's Effective XML - http://www.ibm.com/developerworks/xml/library/x-think25.html
A survey of XML standards - http://www-106.ibm.com/developerworks/xml/library/x-stand4/

More information about the XML-SIG mailing list