Examples

XML Examples – How to Use XML Viewers, Parsers and Formatting


Note: Many of the samples below rely on client-side XML handling and were written to utilize functionality implemented in Internet Explorer 5 and above. To browse these examples as they were designed to be seen, you should ideally be using Microsoft Internet Explorer 5 or later.


Viewing XML Files

These examples are taken from the chapter Viewing XML Files in the XML Section of this Web.

A Note

An XML CD catalog

An XML plant catalog

A Simple Menu


Viewing XML Files with a DTD

These examples are taken from the chapter Introduction to DTD.

XML file with an internal DTD

XML file with an external DTD


Formatting XML with JavaScript

These examples are taken from the chapter Displaying XML in the XML Section of this Web.

An XML Note

Formatted by JavaScript


Formatting XML with CSS

These examples are taken from the chapter Displaying XML in the XML Section of this Web.

An XML CD Catalog

A CSS file

The CD Catalog formatted with the CSS file


Formatting XML with XSL

These examples are taken from the chapter Displaying XML in the XML Section of this Web.

A Simple XML Menu

Formatted with XSL by the Browser

Formatted with XSL by the Server


Transforming XML documents

These examples are taken from the chapter The XML XSL in the XSL Section of this Web.

The XML file to be transformed

The XSL template

The Result


Navigating an XML file

The XML file to navigate

Displaying the file as a recordset in a table

Navigate the recordset

An application prototype