ElementTree and XPATH

dayzman at hotmail.com dayzman at hotmail.com
Wed Dec 8 23:22:41 EST 2004


Hi,

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.

Cheers,
Michael




More information about the Python-list mailing list