Python のソースは次のとおりです。
fsock = urllib2.urlopen('http://eprints.soton.ac.uk/cgi/exportview/divisions/uos-fp/2009/XML/uos-fp_2009.xml')
doc=et.parse(fsock)
これを実行しようとすると、次のエラーが発生します。
トレースバック (最新の呼び出しが最後): ファイル「C:\Python27\reading and writing xml file from web1.py」の 30 行目 doc=et.parse(fsock) ファイル「C:\Python27\lib\xml\etree\ElementTree.py」、1176 行目、解析中 tree.parse(ソース、パーサー) ファイル「C:\Python27\lib\xml\etree\ElementTree.py」、654 行目、解析中 self._root = parser.close() ファイル「C:\Python27\lib\xml\etree\ElementTree.py」、1635 行目、閉じる self._raiseerror(v) ファイル「C:\Python27\lib\xml\etree\ElementTree.py」、1487 行目、_raiseerror エラーを上げる ParseError: 要素が見つかりません: 行 1、列 0
なぜこれが起こっているのか、誰も助けることができますか?