I am trying to parse XML, or better I am trying to test if I can access my XML file. However I got this error here:
>>>> DomTree = xml.dom.minidom.parse("usc01")
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
DomTree = xml.dom.minidom.parse("usc01")
File "C:\Python34\lib\xml\dom\minidom.py", line 1960, in parse
return expatbuilder.parse(file)
File "C:\Python34\lib\xml\dom\expatbuilder.py", line 910, in parse
with open(file, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'usc01'
This is directly from the Python Shell, I tried to move the usc01.xml to the python34 folder, but still gives me this error.
Does anyone know how to fix this?
xml.dom.minidom.parse("usc01.xml")