function loadXmlDoc(xmlFile) {
    var xmlDoc;
    
    $.ajax({
        type: "GET",
        url: xmlFile,
        dataType: "xml",
        async: false,
        success: function(xml) {
            xmlDoc = xml;
        }
    });
 
    return xmlDoc;
}