def pasrsexml(dateiname):
d = []
try:
baum = dom.parse(dateiname)
for eintrag in baum.firstChild.childNodes:
if eintrag.nodeName == "tr":
schluessel = wert = None
wert=1
for knoten in eintrag.childNodes:
if knoten.nodeName == "td":
try:
schluessel = knoten.firstChild.data.strip()
except Exception:
schluessel = " "
d.append(schluessel)
except Exception:
d.append("ERROR")
return d