socket or xml error?

myzhang at gmail.com myzhang at gmail.com
Sat Feb 19 18:37:43 EST 2005


I got an error as following.  The Server/cllient program was written by
somebody else and supposed to be working before.  Whenever I start a
new client to load xml data from server, the program will fail as:


 File "ShowAllData.py", line 157, in ?
    main(sys.argv)
  File "ShowAllData.py", line 130, in main
    win = MainWindow()
  File "ShowAllData.py", line 63, in __init__
    videoInfo =
CaMLDocumentParser.getVideoInfo(GenericParser.parse(StringIO(result)))
  File "/home/vraid1/mzhang/CaMLServer3/lib/GenericParser.py", line 39,
in parse
    xml.sax.parse (file, g)
  File "/usr/lib/python2.2/site-packages/_xmlplus/sax/__init__.py",
line 31, in parse
    parser.parse(filename_or_stream)
  File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
line 109, in parse
    xmlreader.IncrementalParser.parse(self, source)
  File "/usr/lib/python2.2/site-packages/_xmlplus/sax/xmlreader.py",
line 123, in parse
    self.feed(buffer)
  File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
line 220, in feed
    self._err_handler.fatalError(exc)
  File "/usr/lib/python2.2/site-packages/_xmlplus/sax/handler.py", line
38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:0: not well-formed
(invalid token

Any ideas?

Thanks

Michael




More information about the Python-list mailing list