Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thehayat opened this issue Nov 12, 2019 · 1 comment
Open

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

thehayat opened this issue Nov 12, 2019 · 1 comment
Labels

Comments

@thehayat
Copy link

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>
@stchris
Copy link
Owner

stchris commented Nov 12, 2019

Hi @thehayat ! I'm not quite sure I understand which error you are seeing. Maybe you can post some code snippet or even better: a failing test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants