I have built this code to specifically identify a load of .XML files and to extract co-ordinates from those files. Here is my code:
from xml.etree import Element
You need to change the line
tree = ET.parse(workspace)
to
tree = ET.parse(filename)
because workspace is a directory and the parse method takes a filename.