So I have a xml document loaded in JavaScript variable.
Xml looks like this:
<root>
<pp>test<ii>sample italic</ii> text after italic</pp>
</root>
Then I have an input box where the content of <pp> element is written out.
Like this: test<ii>sample italic</ii> text after italic
Note that text in input box contains Xml tags.
User can then change the text in input box.
Like so: test<ii>sample BB italic</ii> and <bb>bold </bb> text after
Now I need to save this modified text back to Xml variable.
How do I do that?
EDIT 1
Question has nothing to do with saving to actual file. I just need to save/change modified data back to Xml variable.