-4
Traceback (most recent call last):
 1. File "C:\Python32\saxparser.py", line 19, in <module>
    parser.parse('xmlfile.xml')
 2. File "C:\Python32\lib\xml\sax\expatreader.py", line 107, in parse
    xmlreader.IncrementalParser.parse(self, source)
 3. File "C:\Python32\lib\xml\sax\xmlreader.py", line 125, in parse
    self.close()
 4. File "C:\Python32\lib\xml\sax\expatreader.py", line 217, in close
    self.feed("", isFinal = 1)
 5.  File "C:\Python32\lib\xml\sax\expatreader.py", line 211, in feed
    self._err_handler.fatalError(exc)
 6. File "C:\Python32\lib\xml\sax\handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: xmlfile.xml:26:13: no element found
4

1 回答 1

0

此错误表示您试图解析一个空文件。

于 2012-04-15T17:10:46.410 回答