Login Register

Sending xml to ajax method

[EDIT: moved to General Support, where you're likely to get an answer.]

Does any one knows how to capture the xml in the ajax method in
one servlet?

var xmlDoc = "";
xmlDoc += "<?xml version='1.0' encoding='utf-8' ?>\n";
xmlDoc += "\n";
xmlDoc += "\n";
xmlDoc += "";
xmlDoc = dojo.dom.createDocumentFromText(xmlDoc);

var ajax = dojo.io.bind({
url: "./Generic",
method: "post",
content: xmlDoc,
load: appendDetail,
mimetype: "text/xml",
transport: "XMLHTTPTransport"
});

Thanks,
Joao