Делаю так
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from xml.dom import minidom
dom = minidom.parse("scheme.xml")
В ответ получаю так
andreyv@andreyv:~/Документы/py/xml$ ./readxml.py
Traceback (most recent call last):
File "./readxml.py", line 6, in <module>
dom = minidom.parse("scheme.xml")
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/minidom.py", line 1915, in parse
return expatbuilder.parse(file)
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/expatbuilder.py", line 926, in parse
result = builder.parseFile(fp)
File "/usr/lib/python2.6/dist-packages/_xmlplus/dom/expatbuilder.py", line 211, in parseFile
parser.Parse("", True)
xml.parsers.expat.ExpatError: unclosed token: line 1, column 0
В чем проблема? Все маны перевернул уже.