$.ajax({ type: 'GET', url: 'something.html', dataType: 'xml', success:function(data){} , });
The content while accessing ‘something.html’ is an XML but the above call is failed where if I use ‘something.xml’ it is working fine.
Is it possible to make jQuery to forcefully evaluate the data as XML, without worrying about the file extension?
Your problem has nothing to do with the file extension but with the MIME type your server is sending. jQuery expects as per dataType Setting that your server is going to send response as text/xml whereas your server might be sending MIME text/html so its throwing error as kgiannakakis pointed out.