I am trying to make a simple web based jQuery xml editor.
So.. the simplest solution I found is to take it’s entire content of the xml file and place it into an input.
After that I can edit it, and then save it (haven’t thought about how can I do that yet, but if you have any ideas please help).
function displayXMLContent(obj) {
$.ajax({
type: "GET",
url: obj.children().attr('title'),
success: function (data) {
$('#inputToEditXML').html(data);
accessForTextArea(true);
}
});
}
Instead of $(‘#inputToEditXML’).html(data);
do
$(‘#inputToEditXML’).text(data);