title: Invalid XML Error
body: <p>I have the following code : </p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;p id="someElement"&gt;&lt;/p&gt;
  &lt;p id="anotherElement"&gt;&lt;/p&gt;
  
  
  
  &lt;script&gt;
  var xml = "&lt;count&gt;1&lt;/count&gt;&lt;ticketID id='2'&gt;&lt;incidentUrl&gt;3&lt;/incidentUrl&gt;&lt;/ticketID&gt;",
  xmlDoc = $.parseXML( xml ),
  $xml = $( xmlDoc ),
  $title = $xml.find( "count" );
  
  /* append "RSS Title" to #someElement */
  $( "#someElement" ).append( $title.text() );
  
  /* change the title to "XML Title" */
  $title.text( "XML Title" );
  
  /* append "XML Title" to #anotherElement */
  $( "#anotherElement" ).append( $title.text() );
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The above code - produces an error : Invalid XML</p>
  
  <p>However , when i change var xml to  : 
       var xml = &lt; count >1&lt; / count > 
  it works without any errors.</p>
  
  <p>Why is this ?</p>
  
  <p>Thanks!</p>