xml.etree Syntax of path?

Thomas Guettler hv at tbz-pariv.de
Fri May 9 05:16:19 EDT 2008


Hi,

I think the documentation of xml.etree is missing something[1].

{{{
find(path)
     Finds the first toplevel element with given tag. Same as getroot().find(path). path is the element to look for.
}}}

According to the source etree has limited support for xpath. I think it should be documented
what 'path' should look like to.


[1]
http://docs.python.org/lib/elementtree-elementtree-objects.html


-- 
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de



More information about the Python-list mailing list