XML technologies / XML / XML in a Nutshell / XML reference / Some annotated sample documents

(Excerpt from "XML in a Nutshell" by Elliotte Rusty Harold & W. Scott Means)

These examples mainly help explain XML syntax. They make it easier to demonstrate the connection between a particular part of XML and the corresponding syntactic structure. The sample document and its DTD include features extending XML 1.0. These are defined in the XML 1.0 recommendation and Namespaces in XML (Namespaces in XML).

The following sample XML application describes the construction of a piece of furniture. Each language construct is shown in a box with an annotation pointing to its syntax description. By finding a construct in the example and looking up its theoretical definition, you can recognize and learn unfamiliar XML syntax structures. The application consists of four files:

  Figure: buecherregal.xml

Figure: buecherregal.xml

  Figure: moebel.dtd

Figure: moebel.dtd

  Figure: buecherregal_ex.ent

Figure: buecherregal_ex.ent

  Figure: teileliste.ent

Figure: teileliste.ent

  

 

 

 

back to top