[reportlab-users] lib.rparsexml.parsexmlSimple from current.tgz
Jerome Alet
reportlab-users@reportlab.com
Mon, 30 Jun 2003 13:50:36 +0200
On Mon, Jun 30, 2003 at 01:41:23PM +0200, Igor Stroh wrote:
>
> Hi there,
>
> I have problems using the above function, I get an "unpack tuple of
> wrong size" Exception from line lib/rparsexml.py:101 when the xmltext
> parameter contains a single & or a < but no xml tags.
Maybe you should try to escape these characters :
s = "your xmltext"
s = s.replace("&", "&")
s = s.replace(">", ">")
s = s.replace("<", "<")
do_something(s)
bye,
Jerome Alet