tXml icon indicating copy to clipboard operation
tXml copied to clipboard

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

Open pranav-js opened this issue 3 years ago • 3 comments

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.

pranav-js avatar Dec 14 '21 10:12 pranav-js

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.

TobiasNickel avatar Dec 17 '21 01:12 TobiasNickel

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

pranav-js avatar Dec 17 '21 05:12 pranav-js

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

arthurlomakin11 avatar Feb 16 '22 14:02 arthurlomakin11