commit | author | age
|
8ab985
|
1 |
#!/usr/bin/python3 |
SP |
2 |
import xml.etree.ElementTree as ET |
|
3 |
import base64 |
|
4 |
import zlib |
|
5 |
|
|
6 |
tree = ET.parse('../src/timestep_000000.vtu') |
|
7 |
root = tree.getroot() |
|
8 |
trisurf=root.find('trisurf') |
|
9 |
version=root.find('trisurfversion') |
|
10 |
print(version.text); |
|
11 |
print(trisurf.items()) |
|
12 |
|
|
13 |
#xml=zlib.decompress(base64.b64decode(trisurf.text)) |
|
14 |
#xml=trisurf.text |
|
15 |
#print(xml) |
|
16 |
|
|
17 |
#tree2=ET.ElementTree(ET.fromstring(str(xml)) |
|
18 |
#tree2=ET.ElementTree(ET.fromstring("<root>"+str(xml)[0:-1]+"</root>")) |