XML Examples
This directory contains examples of XML files. Some have schemas defined as DTD or XLD files. Some have style sheets specified by XLS files.
- Periodic elements has a simple xml file, allelements.xml (txt), with no associated schema. The xml file can be checked with a simple validaor to see if it is well-formed XML.
- The book example represents data about books and has a simple DTD schema (book.dtd). Note that since the book.xml (txt) file references the dtd schema, the validator uses it to check if it conforms.
- In the company example, company-data.xml (txt) also references a DTD schema, company.dtd, supporting validation.
- cdcatalog is an example that motivates the use of XML with style sheets. The native html version, cdcatalog.html (src) , just uses html to display a list of CDs. The file cdcatalog.xml (src) uses xml to represent the data and the style sheet cdcatalog.xsl (src) to transform it into html.
- The food example has a data file and a style sheet but no schema.
View the two xml files in your browser to see the effect of the xsl style sheet.
- ExpenseReport gives an example of a for expense reports, where
|