Skip to Main Content
XML and Related Technologies
book

XML and Related Technologies

by Atul kahate
May 2024
Beginner to intermediate content levelBeginner to intermediate
527 pages
17h 52m
English
Pearson India
Content preview from XML and Related Technologies
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Schema

XML Schema

Eric van der Vlist
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means
Beginning XML, 5th Edition

Beginning XML, 5th Edition

Danny Ayers, Liam R.E. Quin, Joe Fawcett

Publisher Resources

ISBN: 9781282652262