[xml.dom.minidom] why cant it parse '&'
Michael Schneider
michaels at one.net
Thu Sep 12 06:26:43 EDT 2002
The problem is your xml file. it is not valid.
you can't have a '&' char in a normal (non-CDATA) string.
Your xml file needs to read
<sxml>
<title>Congo Mombo - Guitar Gable & The Musical Kings</title>
...
good luck,
Mike
: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??
>cheers asap
>
>
More information about the Python-list
mailing list