Re: ElementTree and XPATH

2004-12-11 Thread Martijn Faassen
Istvan Albert wrote: [EMAIL PROTECTED] wrote: it seems to be invalid syntax if I give "/a/b[0]" to the findall() method. Does anyone know the correct syntax? I think the proper mindset going in should be that elementtree does not support xpath but that there are some handy constructs that resemble

Re: ElementTree and XPATH

2004-12-09 Thread Istvan Albert
[EMAIL PROTECTED] wrote: it seems to be invalid syntax if I give "/a/b[0]" to the findall() method. Does anyone know the correct syntax? I think the proper mindset going in should be that elementtree does not support xpath but that there are some handy constructs that resemble the location steps of

Re: ElementTree and XPATH

2004-12-09 Thread Fredrik Lundh
<[EMAIL PROTECTED]> wrote: > 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]" t

ElementTree and XPATH

2004-12-08 Thread dayzman
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 an