Skip to content

TypeError: 'Element' object does not support item assignment #65

@thehayat

Description

@thehayat

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions