// ALL DATA
$(document).ready(function() {
$.ajax({
type: "GET",
url: "data.xml",
dataType: "xml",
success: parseXml
});

function parseXml(xml) {
$(xml).find("row").each(function() {
//Loops through each state & find's respective instance of city & id in the xml file

$("table#all").append('<tr><td><strong>'+ $(this).find("Store").text() +'</strong></td><td>'+$(this).find("Address").text()+'</td><td class="ac">'+$(this).find("Country").text()+'</td><td>'+$(this).find("TelNo").text()+'</td> </tr>');

});
}
});

// IRELAND DATA
$(document).ready(function() {
$.ajax({
type: "GET",
url: "ireland.xml",
dataType: "xml",
success: parseXml
});

function parseXml(xml) {
$(xml).find("row").each(function() {
//Loops through each state & find's respective instance of city & id in the xml file

$("table#ireland").append('<tr><td><strong>'+ $(this).find("Store").text() +'</strong></td><td>'+$(this).find("Address").text()+'</td><td class="ac">'+$(this).find("Country").text()+'</td><td>'+$(this).find("TelNo").text()+'</td> </tr>');

});
}
});

// UK DATA
$(document).ready(function() {
$.ajax({
type: "GET",
url: "uk.xml",
dataType: "xml",
success: parseXml
});

function parseXml(xml) {
$(xml).find("row").each(function() {
//Loops through each state & find's respective instance of city & id in the xml file

$("table#uk").append('<tr><td><strong>'+ $(this).find("Store").text() +'</strong></td><td>'+$(this).find("Address").text()+'</td><td class="ac">'+$(this).find("Country").text()+'</td><td>'+$(this).find("TelNo").text()+'</td> </tr>');

});
}
});