Easy Tutorial
❮ Xml Usage Xml Namespaces ❯

Displaying XML Data in an HTML Page

Displaying XML Data in an HTML Page

In the following example, we open an XML file ("cd_catalog.xml") and then iterate through each CD element, displaying the values of the ARTIST and TITLE elements in an HTML table:

Example

For more information on using JavaScript and the XML DOM, please visit our XML DOM Tutorial.

❮ Xml Usage Xml Namespaces ❯