Last active
October 8, 2017 08:23
-
-
Save thecliguy/7e4e2b55d29d366c6f137e92693b2fd3 to your computer and use it in GitHub Desktop.
Books
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<catalog> | |
<book> | |
<author>Gambardella, Matthew</author> | |
<title>XML Developer's Guide</title> | |
<genre>Computer</genre> | |
<price>44.95</price> | |
<publish_date>2000-10-01</publish_date> | |
<description>An in-depth look at creating applications | |
with XML.</description> | |
</book> | |
<book> | |
<author>Ralls, Kim</author> | |
<title>XML Developer's Guide</title> | |
<genre>Fantasy</genre> | |
<price>5.95</price> | |
<publish_date>2000-12-16</publish_date> | |
<description>A former architect battles corporate zombies, | |
an evil sorceress, and her own childhood to become queen | |
of the world.</description> | |
</book> | |
<book> | |
<author>Corets, Eva</author> | |
<title>Maeve Ascendant</title> | |
<genre>Fantasy</genre> | |
<price>5.95</price> | |
<publish_date>2000-11-17</publish_date> | |
<description>After the collapse of a nanotechnology | |
society in England, the young survivors lay the | |
foundation for a new society.</description> | |
</book> | |
<book> | |
<author>Corets, Eva</author> | |
<title>Oberon's Legacy</title> | |
<genre>Fantasy</genre> | |
<price>5.95</price> | |
<publish_date>2001-03-10</publish_date> | |
<description>In post-apocalypse England, the mysterious | |
agent known only as Oberon helps to create a new life | |
for the inhabitants of London. Sequel to Maeve | |
Ascendant.</description> | |
</book> | |
</catalog> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> | |
<!-- XML Schema Generated from XML Document on Sun Oct 08 2017 01:47:23 GMT+0100 (GMT Standard Time) --> | |
<!-- with XmlGrid.net Free Online Service http://xmlgrid.net --> | |
<xs:element name="catalog"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="book" maxOccurs="unbounded"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="author" type="xs:string"></xs:element> | |
<xs:element name="title" type="xs:string"></xs:element> | |
<xs:element name="genre" type="xs:string"></xs:element> | |
<xs:element name="price" type="xs:double"></xs:element> | |
<xs:element name="publish_date" type="xs:date"></xs:element> | |
<xs:element name="description" type="xs:string"></xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
<xs:unique name="uniqueTitle"> | |
<xs:selector xpath="book"/> | |
<xs:field xpath="title"/> | |
</xs:unique> | |
</xs:element> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment