Re: Elementtree 1.3 and xpath

2008-01-10 Thread Fredrik Lundh
Andrew Lonie wrote: > Hi I noticed that the xpath functionality of elementtree has been > upgraded in version 1.3. However I can't seem to get the [postion] > predicate to function. All the other new functionality seems to be > working. ET 1.3 is only available in an early alpha yet, and the post

Elementtree 1.3 and xpath

2008-01-10 Thread Andrew Lonie
Hi I noticed that the xpath functionality of elementtree has been upgraded in version 1.3. However I can't seem to get the [postion] predicate to function. All the other new functionality seems to be working. Maybe I'm getting the syntax wrong?: >>> xml = ET.XML("""texttext2""") >>> elem = xml.f