#!/usr/bin/python3 import xml.etree.ElementTree as ET import base64 import zlib tree = ET.parse('../src/timestep_000000.vtu') root = tree.getroot() trisurf=root.find('trisurf') print(trisurf.items()) xml=zlib.decompress(base64.b64decode(trisurf.text)) tree2=ET.ElementTree(ET.fromstring(""+str(xml)[0:-1]+""))