
398 • XML & Related Technologies
</author>
<price>200</price>
</book>
<book category=”philosophy” publicationdate=”1991” ISBN=”1-910001-23-6”>
<title>What is art?</title>
<author>
<rst-name>Radhika</rst-name>
<last-name>Toro</last-name>
</author>
<price>225</price>
<deliberate-mistake />
</book>
</bookstore>
Figure 8.6 Modified XML document (books.xml) with deliberate error
As we can see, we have an extra element called <deliberate-mistake /> in our XML document, which
is not specified in our XML schema. Therefore, the schema should flag this as an error, which it does. The
resulting output is shown in Figure 8.7.
Figure 8.7 Error in ...