title: jquery get request returning document instead of XML
body: <p>I have a peice of code that i call inside of $("document).ready() in jquery that tries to open an xml file and parse it. </p>
  
  <pre><code>$.get('cal.xml', function(data){
      alert(data);
  var xmlDoc = $.parseXML(data);
  var $xml = $(xmlDoc);
  });
  </code></pre>
  
  <p>the alert that pops up is "[object Document]" rather than the actual text of the xml which then throws a problem with $.parseXML(data) saying that 
  "Uncaught Invalid XML: undefined" (implying that data is undefined).</p>
  
  <p>here is the XML file </p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;cal&gt;
      &lt;today&gt;
          &lt;event&gt;
              &lt;time&gt;
                  6:30pm EST
              &lt;/time&gt;
              &lt;title&gt;
                  nothing
              &lt;/title&gt;
          &lt;/event&gt;
      &lt;/today&gt;
  &lt;/cal&gt;
  </code></pre>
  
  <p>Could someone help me simply read in this XML file and set it up for parsing?</p>