Extract or recover data from an XML file with AJAX – Red360.com.ve

Extract or recover data from an XML file with AJAX – Red360.com.ve
The following tutorial requires knowledge in AJAX, JavaScript, XML and DOM XML.

The following information is available in a file XML :

File libros.xml

Extract or recover data from an XML file with AJAX – Red360.com.ve

We will obtain that information through AJAX and we will show it in the browser in a table HTML .

In our index.php file we create a div and a button so that when it is pressed, it shows inside the div the information that contains the XML file. In the head we import the file ajax.js that contains the function JavaScript loadXMLDoc () .

File index.php

Get information ; n of an XML file through AJAX.

Source

Share