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"]);
});
More Related Contents:
- Convert XML to JSON (and back) using Javascript
- Ajax request returns 200 OK, but an error event is fired instead of success
- jQuery returning “parsererror” for ajax request
- When to prefer JSON over XML?
- jQuery: Evaluate script in ajax response
- jQuery AJAX cross domain
- jQuery $(document).ready and UpdatePanels?
- I keep getting “Uncaught SyntaxError: Unexpected token o”
- Make cross-domain ajax JSONP request with jQuery
- No ‘Access-Control-Allow-Origin’ header is present on the requested resource error
- Read local XML with JS
- how to parse a “dd/mm/yyyy” or “dd-mm-yyyy” or “dd-mmm-yyyy” formatted date string using JavaScript or jQuery [duplicate]
- How can I validate google reCAPTCHA v2 using javascript/jQuery?
- Difference in JSON objects using Javascript/JQuery
- How can I make window.showmodaldialog work in chrome 37?
- How to convert HTML to JSON using PHP?
- Jquery getJSON populate select menu question
- Calling ASP.NET Code Behind function from JavaScript
- Changing getJSON to JSONP
- Accessing elements of JSON object without knowing the key names
- Emailing to multiple recipients with html Mailto: not working
- IE10/11 Ajax XHR error – SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3
- Parsing Date from webservice
- JSON Parse File Path
- ASP.NET Parse DateTime result from ajax call to javascript date
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- focus on next tabindex of HTML element onEnter keypress by JQuery
- Using JSONP to get JSON data from another server
- Getting max value(s) in JSON array
- How to return an array from an AJAX call?