I search for a method to get plain xml(with tags ect.) from a file and save it so the localStorage.
I found a few opportunities, but every one of them returns the xml without tags. I prefer jQuery to do this…
I tried $.get, $("").load() and AJAX but I don’t get it. I just want to save the whole xml as string into the localStorage and read it out later (and work with it).
Does anyone have a idea?
Regards
You can use:
This will provide you the XML document as plain text and save it to the
localStorage.Here is a full solution: