Need help in getting xml data from Rest API

Need help in getting xml data from Rest API

I need help in alerting data from the rest api on screen.

My api url is http://www.thomas-bayer.com/sqlrest/CUSTOMER/ which lists a group of customer data(dummy).

I want to design a jquery method which reads the data from the api and displays the data on screen exactly as it is shown as in response that would see the uri would shown on a browser.

function callLoginService(url) {
    $.ajax({
        type: "GET",
        url: url,
        dataType: "xml",
        success: function(xml) {
        var test = $('Customer',xml);
        alert(test);
           
                    }
    });
}

I wrote the above - but this didnt work. Please help.