ElementTree find with xmlns

cakebread cakebread at gmail.com
Fri Oct 12 23:56:58 EDT 2007


On Oct 12, 8:35 pm, Rajarshi <rajarshi.g... at gmail.com> wrote:

>
> You have to prefix the element name with its namespace. The following
> will work
>
> >>> tree.find('{http://www.w3.org/1999/xhtml}body')
>
> <Element {http://www.w3.org/1999/xhtml}body at 779d28>
>

Pefect, thank you, Rajarshi!




More information about the Python-list mailing list