After fighting a day with python / etree without considerable success:
I have a xml file (items.xml)
<symbols>
<symbol>
<layer class="SvgMarker">
<prop k="size" v="6.89"/>
</layer>
</symbol>
<symbol>
<layer class="SvgMarker">
<prop k="size" v="3.56"/>
</layer>
</symbol>
<symbol>
<layer class="line">
<prop k="size" v="1"/>
</layer>
</symbol>
</symbols>
Questions
- read this file
- find all prop elements which have a parent element namend "layer" with class "SvgMarker"
- multiply the value of v with 1.5
- write the content back
I do not stick on etree if there is something easier.