< Parse XML Doc >


Here is a way to read the contents of an XML file with Javascript, displaying the information dynamically onto an HTML page. In this demonstration there is a menu of product categories, which when moused-over, will cause a list to be displayed with a range of items relevant to the product category selected. There are 2 files shown below that will have to be copied and pasted in order to run the program.








parseXML.html


products.xml


< Previous Page