XML to HTML

You can use display XML data in HTML elements, like tables.


Examples

Display XML data in an HTML table
Load data form an XML document and displays it in an HTML table.

Display XML data in an HTML table with table header and footer
Load data form an XML document and displays it in an HTML table including table header and footer.


Display XML Data in HTML

In the last chapter, we looked at how we could parse XML data with JavaScript. Now, lets try to use the XML data to fill an HTML table.

In this example, we will display XML data from "cd_catalog.xml": View "cd_catalog.xml".

The HTML file looks like this:







Mix it