XML parsing "not well-formed" <p>I received in the console a lot of <code>not well-formed</code> with :</p> <pre><code>language="en"; $.ajax({ url: 'translate.xml', dataType: "xml", success: function(xml) { $(xml).find('translation').each(function(){ var id = $(this).attr('id'); var text = $(this).find(language).text(); $("." + id).append(text); }); } }); </code></pre> <p>My XML file "translate.xml" have this format :</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;translations&gt; &lt;translation id="t_house"&gt; &lt;en&gt;house&lt;/en&gt; &lt;fr&gt;maison&lt;/fr&gt; &lt;/translation&gt; &lt;translation id="t_boat"&gt; &lt;en&gt;boat&lt;/en&gt; &lt;fr&gt;bateau&lt;/fr&gt; &lt;/translation&gt; &lt;/translations&gt; </code></pre> <p>I don't understand where these warnings come from ?</p>