elementtree -

Jesper Olsen jolsen at despammed.com
Mon Oct 4 03:12:30 EDT 2004


"Fredrik Lundh" <fredrik at pythonware.com> wrote in message news:<mailman.4213.1096815107.5135.python-list at python.org>...
> Jesper Olsen wrote:
> 
> > I'd like to output the element "<span> </span>"
> > and I try this
> >
> > w=XMLWriter(f)
> > w.element("span", " ", id="txt")
> 
> use chr(160).
> 
> (" " isn't a standard XML entity, and the simple writer doesn't support
> custom entities.)
> 
> </F>


Thanks, that worked.

/Jesper



More information about the Python-list mailing list