I am working on a Web application that needs to send XML to a server backend. I\'d like to build a XML document in-memory on the client-side, but using XML manipulation rout
Have you considered JSON? You could save the data using objects. Then you could use JSON.stringify(obj); and send that to the server.
a simple example
var obj = new student('Alice',80);
function student(a,b){
this.name=a;
this.grade=b;
}
function sendToServer(){
var dataString = JSON.stringify(obj);
//the HTTP request
}