I'm parsing some XML using minidom and whenever a comment has a "--" within it, I get an ExpatError.
For example, a file may be like this:
<Label> Hello!</Label> <!-- The above label says Hello. -- It is clear, no? Let's try spicing it up a bit. -- Add some color to it. --> <Label color="#FF0000">HI I'M RED-Y.</Label>
When I run it through the XML parser, I get an ExpatError. Is there any way I could have it simply ignore the comments and continue parsing the rest of the file and run the script as it's supposed to?
Thanks for the help!