elementtree -

Jesper Olsen jolsen at despammed.com
Mon Oct 4 09:12:30 CEST 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>&nbsp;</span>"
> > and I try this
> >
> > w=XMLWriter(f)
> > w.element("span", "&nbsp;", id="txt")
> 
> use chr(160).
> 
> ("&nbsp;" 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