[xml.dom.minidom] why cant it parse '&'
Oren Tirosh
oren-py-l at hishome.net
Thu Sep 12 06:06:15 EDT 2002
On Thu, Sep 12, 2002 at 09:58:29AM +0000, :B nerdy wrote:
> im using the minidom.parseString() to parse the following text
>
> <sxml>
> <title>Congo Mombo - Guitar Gable & The Musical Kings</title>
> <composer>Various</composer>
> <genre>blues</genre>
> <trackNo>12</trackNo>
> <copyright>Westwood</copyright>
> <dateInserted>2002-03-11</dateInserted>
> </sxml>
>
> when it comes to the '&' it throws an exception. is there any way around
> this problem??
It's not specific to Python or minidom. & and <> are reserved characters
in SGML/HTML/XML.
& => &
< => <
> => >
Oren
More information about the Python-list
mailing list