TypeError: 'Element' object does not support item assignment
thehayat opened this issue · 1 comments
thehayat commented
Able to read xml
but wanted to change the attribute
value and append it as a new object.
But it gives assignment error.
sample_data
<TBASettings>
<Tenant urlTag="nmdcdemo" id="9001" tbaStatus="true" nonValidatedExtensions=".jpg"/>
</TBASettings>
wanted to change and append new object as
<TBASettings>
<Tenant urlTag="nmdcdemo" id="9001" tbaStatus="true" nonValidatedExtensions=".jpg"/>
<Tenant urlTag="nmdcdemo2" id="9002" tbaStatus="true" nonValidatedExtensions=".jpg"/>
</TBASettings>