In article ,
Terry Reedy wrote:
>On 7/5/2010 6:40 AM, Ben Sizer wrote:
>
>>> Admittedly, it's three clicks away from the library docs on docs.python.org.
>>>
>>> http://effbot.org/zone/element.htm#xml-namespaces
>>
>> Hopefully someone will see fit to roll this important documentation
>> into doc
On 7/5/2010 6:40 AM, Ben Sizer wrote:
Admittedly, it's three clicks away from the library docs on docs.python.org.
http://effbot.org/zone/element.htm#xml-namespaces
Hopefully someone will see fit to roll this important documentation
into docs.python.org before the next release... oops, too la
On Jul 4, 7:33 am, Stefan Behnel wrote:
> BenSizer, 04.07.2010 00:32:
>
> > On Jul 3, 11:12 pm,BenSizer wrote:
>
> >> >>> for el in root.getiterator():
>
> >> ... print el
> >> [much output snipped]
> >> http://www.w3.org/1999/xhtml}a at d871e8>
> >> http://www.w3.org/1999/xhtml}a at d8728
Ben Sizer, 04.07.2010 00:32:
On Jul 3, 11:12 pm, Ben Sizer wrote:
>>> for el in root.getiterator():
...print el
[much output snipped]
http://www.w3.org/1999/xhtml}a at d871e8>
http://www.w3.org/1999/xhtml}a at d87288>
http://www.w3.org/1999/xhtml}script at d87300>
http://www.w3.org/19
On Jul 3, 11:12 pm, Ben Sizer wrote:
> >>> for el in root.getiterator():
>
> ... print el
> [much output snipped]
> http://www.w3.org/1999/xhtml}a at d871e8>
> http://www.w3.org/1999/xhtml}a at d87288>
> http://www.w3.org/1999/xhtml}script at d87300>
> http://www.w3.org/1999/xhtml}script a
It seems that getiterator isn't returning the tags I ask for.
>>> tree = parse('gdlibs.html')
>>> root = tree.getroot()
>>> for el in root.getiterator():
...print el
[much output snipped]
http://www.w3.org/1999/xhtml}a at d871e8>
http://www.w3.org/1999/xhtml}a at d87288>
http://www.w3.org/