Solving the XML Parsing error in Firebug

XML Parsing Error: no element found Location: moz-nullprincipal:{e04285c3-86a1-f146-b683-55bb667191ea} Line Number 1, Column 1:


If you are getting the above error in firebug, you are most probably making a cross browser request that is not allowed. You most probably do NOT have an invalid XML in your response. Cross browser requests are not allowed, unless you use jsonp or script as the data type.

To fix this problem, make sure the url doesn’t start with a http/ https:

$.ajax({ url : "http://localhost/somewhere" })

This is not allowed, unless you follow the rules to make a cross browser request. You probably want to do something like:

$.ajax({ url : "somewhere" })