XML technologies / XML Schema / Our first schema / The instance document
(Excerpt from “XML Schema” by Eric van der Vlist)
The instance document used in the first part of this book is a simple library file describing a book, its author and its characters:
<?xml version="1.0" encoding="ISO-8859-1"?>
<library>
<book id="b3810518883" available="true">
<isbn>
3810518883
</isbn>
<title lang="de">
Auf den Hund gekommen
</title>
<author id="CMS">
<name>
Charles M. Schulz
</name>
<born>
1922-11-26
</born>
<dead>
2000-02-12
</dead>
</author>
<character id="PP">
<name>
Peppermint Patty
</name>
<born>
1966-08-22
</born>
<qualification>
kühn, dreist und draufgängerisch
</qualification>
</character>
<character id="Snoopy">
<name>
Snoopy
</name>
<born>
1950-10-04
</born>
<qualification>
extrovertierter Beagle
</qualification>
</character>
<character id="Schroeder">
<name>
Schroeder
</name>
<born>
1951-05-30
</born>
<qualification>
brachte die klassische Musik in die Peanuts-Comics ein
</qualification>
</character>
<character id="Lucy">
<name>
Lucy
</name>
<born>
1952-03-03
</born>
<qualification>
herrschsüchtig, kratzbürstig und egoistisch
</qualification>
</character>
</book>
</library>
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de
back to top