how to convert xml to json using jquery
Try the following. I've tested it on FF 3.6 and Chrome 6, it works.
$.get('data/eurofxref-daily.xml', function(xml) {
var jsonObj = $.xml2json(xml);
alert(jsonObj.Cube.Cube.Cube[0]["rate"]);
});
Try the following. I've tested it on FF 3.6 and Chrome 6, it works.
$.get('data/eurofxref-daily.xml', function(xml) {
var jsonObj = $.xml2json(xml);
alert(jsonObj.Cube.Cube.Cube[0]["rate"]);
});