Well, let's clear up this misconception about XML and AJAX. The term "Asynchronous JavaScript And XML" may seem misleading because you can actually use an XMLHttpRequest
object to fetch not just XML, but also plain text, JSON, scripts, and more.
So why the focus on XML in the name? It seems like a misnomer considering the versatility of the XMLHttpRequest object. Perhaps it was coined before JSON became popular, but even then, fetching raw text was always an option. XML wasn't the only game in town when it came to data retrieval.