I have to parse an XML file using lxml or even xml.etree.ElementTree modules
<?xml version="1.0"?>
<corners>
<version>1.05</version>
<process>
<name>ss649</name>
<statistics>
<statistic name="Min" forparameter="modname" isextreme="no" style="tbld">
<value>0.00073</value>
<real_value>7.300e-10</real_value>
</statistic>
<statistic name="Max" forparameter="modname" isextreme="no" style="tbld">
<value>0.32420</value>
<real_value>3.242e-07</real_value>
</statistic>
<variant>
<name>Unit</name>
<value>
<value>Size</value>
<statistics>
<statistic name="Min" forparameter="modname1" isextreme="no" style="tbld">
<value>0.02090</value>
<real_value>2.090e-08</real_value>
</statistic>
<statistic name="Max" forparameter="modname2" isextreme="no" style="tbld">
<value>0.02090</value>
<real_value>2.090e-08</real_value>
</statistic>
</variant>
I have to extarct all values of and make a Dict which that values, But I can't access the subtrees, how do i do that?
trying to create a dict which will look like this
dict={
'modname' => {
'Min' : 0.00073,
'Max': 0.32420,
}
}