Stefan Behnel <[EMAIL PROTECTED]> writes:
> So it's not even an ElementTree thing. ET just doesn't know what
> exactly was in the original XML byte stream. A very simple way to
> make sure you always get a string back is
>     >>> text = element.text or ""

Thanks, I ended up doing something like that.  What I wondered about
the standard was whether it specified that parrot had no text node,
as opposed to having an empty text node.  I guess it doesn't matter,
it just caught me by surprise.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to