$.Ajax won't initiate success function

$.Ajax won't initiate success function

I'm trying to make a function that loops through an XML file to display the data on a page. However when I try to load the file, the $.Ajax function breaks and nothing happens.

  1. $(document).ready(  
  2.   function(){
  3. $.ajax({
  4. url:"portfolio.xml",
  5. type:"POST",
  6. dataType:"xml",
  7. success:loadData,
  8. error:function(msg){
  9. alert(msg);
  10. }
  11. });
  12. });
That shouldn't be breaking, but I don't know what's happening.