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

support for changing items inside JSON with help of existing methods like getElementsById #28

Open
pranav-js opened this issue Dec 14, 2021 · 3 comments

Comments

@pranav-js
Copy link

Thank you for lib ❤️. This is a feature request.

Right now getElementById returns a parsed XML object, but it would be great if we could change and replace it inside the original JSON and convert it to XML.

@TobiasNickel
Copy link
Owner

I am not sure if I understand this suggestion right, you would like this one element as a string? Then the txml.stringify method can be used.

@pranav-js
Copy link
Author

pranav-js commented Dec 17, 2021

I am not sure if I understand this suggestion right, you would like this one element as a string? Then the txml.stringify method can be used.

No I am saying, if it would change any object in the parsed XML realtime it would be great. for example changing one entire key object values and parse it back XML. one such method addition

@arthurlomakin11
Copy link

I am not sure if I understand this suggestion right, you would like this one element as a string? Then the txml.stringify method can be used.

No I am saying, if it would change any object in the parsed XML realtime it would be great. for example changing one entire key object values and parse it back XML. one such method addition

Didn't understood this. You can use txml.stringify every time you want to reflect changes

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

No branches or pull requests

3 participants