ElementTree surprise

Paul Rubin http
Thu Aug 16 02:15:23 EDT 2007


Torsten Bronger <bronger at physik.rwth-aachen.de> writes:
> >     <foo bar="parrot"></foo>
> Technically, text is nodes as all other element nodes.  In the
> parrot example, there is no empty textnode but no textnode at all.

That is required by the xml standard?  If yes, elementtree is doing
the right thing, but it surprises me, I would have expected an empty
string.  Thanks.



More information about the Python-list mailing list