This is sample how to use ajax to get xml data source.
$.ajax({
type : "GET",
url : "sites1.xml",
dataType : "xml",
success : function(xml) {
$(xml).find('func').each(function() {
var number1 = $(this).find('number1').text();
$(this).find('case').each(function() {
if ($(this).find('reserved').text().length == 0) {
var data = $(this).find('data').text();
var bitoffs = $(this).find('bitoffs').text();
var temp = parseInt(str.substr(bitoffs, bitsize), 2);
alert("number :" + number1 + "data :" + data + temp);
}
});
});
}
});