AJAX can be used for interactive communication with an XML file.
AJAX XML Example
On clicking the "Get CD info" button above, the loadXMLDoc() function is executed.When the server response is ready, an HTML table is built, nodes (elements) are extracted from the XML file, and displayed in the HTML.
The XML File
The XML file used in the example above looks like this: "cd_catalog.xml".