INTRODUCTION:-
AJAX
AJAX is a technique for sending or requesting data without have to perform a page load. If you have ever used a single-page application like Gmail and Google Maps, this is how you are able to go through your inbox and navigate through the map without changing the page you are on. AJAX stands for Asynchronous JavaScript and XML. Asynchronous code is code that runs in parallel with something else, so in this case, you can request or send data without affecting your browsing experiences.
XML
XML, standing for Extensible Markup Language, is similar to HTML but is used for data transfer, just like JSON. The only problem is that XML is typically heavily, harder to read and doesn’t integrate as gracefully as JSON does with JavaScript.
<dog>
<name>Rishi</name>
<age>10</age>
<weight>30</weight>
</dog>
Because of XML’s downsides, AJAX…