I am making an ajax call to a jsp page which returns some xml. Everything seems to go fine and when I use an alert to show the returned data everything looks fine. However, when I attempt to parse the xml in my jQuery I can not do it.The returned xml looks like this:\[code\]<?xml version="1.0" encoding="ISO-8859-1"?> <locations> <location> <branch>Branch</branch> <branchid>BranchID</branchid> <phone>Phone</phone> <address>Address</address> <phone2>Phone2</phone2> </location> </locations>\[/code\]My ajax looks like this:\[code\]$.ajax({ type: "POST", url: "test.jsp", data: {zc : $('#zc').val()}, async: false, success: function(message){ message = message.trim(); $(message).find('location').each(function(){ var branch = $(this).find('branch').text(); alert(branch); }) } })\[/code\]