Example programs for Part 5

Right click on the anchor and select 'Save Target As ...' to download the file. Make sure the downloaded files have extension .xml, .dtd or .xsl (except for the first, which has extension .html). IE might try to change the extension .dtd to .htm and the extension .xsd to .xml.

The validator HTML document described in Sec. 4.2 but changed to use the ActiveX object from MSXML 4.0 Services Pack 2. Use this to validate the example programs listed here. To prevent IE from adding code to this file, I saved it with extension .txt. When you save it, save it as a .txt file, then change the extension to .html.
To execute this, you need MSXNML 4.0 Service Pack 2, available via a link on the downloads page.

The example DTD in Sec. 5.2.1
The equivalent schema
The example XML document validated against the DTD
The example XML document validated against the schema

The first example schema in Sec. 5.2.4
The second example schema in Sec. 5.2.4
An XML document validated against the first schema
An XML document validated against the second schema

The DTD that approximates the first schema in Sec. 5.2.5
The first schema in Sec. 5.2.5
The second schema in Sec. 5.2.5
An XML document validated against the DTD
The XML document listed in the notes that is validated against the first schema
An XML document validated against the second schema

Example schema from Sec. 5.3.4 using block escapes
An XML document validated against this schema