What would be a good way of returning the known Min and Max values from the xml below using python's import xml.etree.ElementTree as ET
I'm struggling to find a clean way of getting the Max and Min values, so I'm open to any suggestions. I'm not in control of the XML creation.
Here is a snippet of my xml.
<options>
<option>
<name v="clamp"/>
<value v="0"/>
</option>
<option>
<name v="default"/>
<value v="10"/>
</option>
<option>
<name v="max"/>
<value v="10"/>
</option>
<option>
<name v="min"/>
<value v="0"/>
</option>
<option>
<name v="step"/>
<value v="1"/>
</option>
</options>