Trying to convert json to xml but shows error

I'm trying to convert the json result into xml type. However, it doesn't seems to work. Couldn't find out what's wrong. Please help.The code is:\[code\]<script src="http://stackoverflow.com/questions/Jquery Autocomplete/jquery-1.7.2.min.js" type="text/javascript"></script><script src="http://stackoverflow.com/questions/Jquery Autocomplete/jquery.json-2.2.min.js" type="text/javascript"></script><script language="javascript" type="text/javascript"> $(document).ready(function() { $(".openModalLink").click(function() { var start=$(this).parent().parent().find(".start").val(); var end =$(this).parent().find(".end").val(); $.ajax( { type: "POST", url: "frmCollegeExamScheduleMst.aspx/ServerSideMethod", data: "{'paraml': '" + start + "','param2': '" + end + "'}", contentType: "application/json; charset=utf-8", dataType: "json", async: true, cache: false, success:function(result) { var xmlDoc = $.parseXML(result); var xml = $(xmlDoc); var customers = xml.find("Table"); var data = http://stackoverflow.com/questions/11027552/new Array(); var i =0; $.each(customers, function () { //do something }); }, error: function(err) { alert('Error:' + err.responseText + ' Status: ' + err.status); } }); }); });\[/code\]
 
Back
Top