ElementTree and XPATH

dayzman at hotmail.com dayzman at hotmail.com
Thu Dec 9 05:22:41 CET 2004


I'm using ElementTree from effbot (http://effbot.org/zone/element.htm)
and I'm having some problems finding nodes that have the same name. I
know in XPATH, we can use an index to identify which node we need, but
it seems to be invalid syntax if I give "/a/b[0]" to the findall()
method. Does anyone know the correct syntax?
Any help will be much appreciated.


More information about the Python-list mailing list