In this instructive example we show the syntax of a simple dtd and xml document. In this example the dtd is included at the start of the xml document.
The XML document shown starts with the DTD - this tells us that there must be a top level node planet which may contain any number of country nodes. Each country must contain two nodes
Following the DTD section we have the data itself - so far we have only two countries - France and Ireland.
<country> <name>Brazil</name> <bop>176.0</bop> </country>Notice what happens if you use the wrong attribute name (bop instead of pop)?