[XML-SIG] xml.sax._exceptions.SAXParseException

Mike Brown mike at skew.org
Thu Nov 10 20:38:32 CET 2005


FURLONG -, LAURA INES wrote:
> When I try to parse an xml file I get the following error:
> 
> 
>  File "<stdin>", line 1, in ?
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
>     xmlreader.IncrementalParser.parse(self, source)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/xmlreader.py", line 125, in parse
>     self.close()
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 226, in close
>     self.feed("", isFinal = 1)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/expatreader.py", line 220, in feed
>     self._err_handler.fatalError(exc)
>   File "/usr/lib/python2.3/site-packages/_xmlplus/sax/handler.py", line 38, in fatalError
>     raise exception
> xml.sax._exceptions.SAXParseException: <unknown>:4298:10: unclosed token
> 
> but the xml file looks ok, it can be visualized in a web browser without any problem. Does anybody know what is going on?

Which version of PyXML do you have installed?
How are you parsing the file? (let's see the Python code)
Can you point us to the XML file?


More information about the XML-SIG mailing list