Here is my jQuery post request, how can i get back xml response, I checked in fiddler the response is coming as my expected xml
Here is my jquery post
$.post("/csm/viewall.action",
{ sessiontoken: sessiontoken },
function(xml)
{
alert(xml);
}
);
alert returns [object XMLDocument]
My xml
<list>
<com.abc.db.ConfigInfo>
<cfgId>83</cfgId>
<cfgName>test</cfgName>
<cfgDesc>test</cfgDesc>
<cfgType>test</cfgType>
<fileName>csmclientbenz.xml</fileName>
<absolutePath>../webapps/csm/files//1-105101/csmclientbenz.xml</absolutePath>
</com.abc.db.ConfigInfo>
<com.abc.db.ConfigInfo>
<cfgId>82</cfgId>
<cfgName>test1</cfgName>
<cfgDesc>test2</cfgDesc>
<cfgType>test1</cfgType>
<fileName>csmclientbenz.xml</fileName>
<absolutePath>../webapps/csm/files//1-105101/csmclientbenz.xml</absolutePath>
</com.abc.db.ConfigInfo>
<list>
here is an informative post about parsing the xml with jquery
http://www.switchonthecode.com/tutorials/xml-parsing-with-jquery
you can read the xml as