[ expat-Bugs-1828723 ] parser cannot handle a comment containing a double dash
"SourceForge.net" <[email protected]> Thu, 08 Nov 2007 18:40:11 -0800
| Newsgroups | gmane.text.xml.expat.bugs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1828723, was opened at 2007-11-08 18:40
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1828723&group_id=10127
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ryan (rad_rb)
Assigned to: Nobody/Anonymous (nobody)
Summary: parser cannot handle a comment containing a double dash
Initial Comment:
when attempting to parse a comment containing a double dash, the parser throws an exception stating that the double dash is not well formed:
import xml.parsers.expat
p = xml.parsers.expat.ParserCreate()
p.Parse('<!-- -- -->')
Traceback (most recent call last):
File "test-expat.py", line 3, in ?
p.Parse('<!-- -- -->')
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 7
I'm using version 1.1, which shipped with python 2.4
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1828723&group_id=10127