problems when parsing & with xml.dom.minidom.parseString

Juan Carlos CORUÑA jcc at ibdosnorte.com
Mon Sep 16 12:51:59 EDT 2002


Hello all,

I'm having the following problem:

>>> node = xml.dom.minidom.parseString('<record>one &
two</record>')
>>> print node.firstChild.firstChild.nodeValue
'one '

Why does the print statement return only a part of the string? How can
I include the '&' (ampersand) in a string?

Anyone knows the solution?



More information about the Python-list mailing list