Created
March 22, 2017 20:20
-
-
Save sirolad/afa109e90a6f2b17c66d0bc8d4c1ec3e to your computer and use it in GitHub Desktop.
Sample Russian Doll XSD design
This file contains 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
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="catalog"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element type="xs:dateTime" name="buildtime"/> | |
<xs:element name="book" maxOccurs="unbounded" minOccurs="0"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element type="xs:string" name="author"/> | |
<xs:element type="xs:string" name="title"/> | |
<xs:element type="xs:string" name="genre"/> | |
<xs:element type="xs:float" name="price"/> | |
<xs:element type="xs:date" name="publish_date"/> | |
<xs:element type="xs:string" name="description"/> | |
</xs:sequence> | |
<xs:attribute type="xs:string" name="id" use="optional"/> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment