Javascript: Change element nodes

tfrmsvrsc

New Member
So I have a xml document loaded in JavaScript variable.Xml looks like this:\[code\]<root> <pp>test<ii>sample italic</ii> text after italic</pp> </root>\[/code\]Then I have an input box where the content of \[code\]<pp>\[/code\] element is written out.Like this: \[code\]test<ii>sample italic</ii> text after italic\[/code\]Note that text in input box contains Xml tags.User can then change the text in input box.Like so: \[code\]test<ii>sample BB italic</ii> and <bb>bold </bb> text after\[/code\] 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.
 
Back
Top