35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Created with Liquid Studio 2018 (https://www.liquid-technologies.com) -->
|
|
<xs:schema xmlns:a="http://www.demo.com/author"
|
|
xmlns:p="http://www.demo.com/person"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
targetNamespace="http://www.demo.com/author"
|
|
elementFormDefault="qualified"
|
|
attributeFormDefault="unqualified">
|
|
<xs:complexType name="AuthorType">
|
|
<xs:complexContent>
|
|
<xs:extension base="a:PersonType">
|
|
<xs:sequence>
|
|
<xs:element name="dateOfBirth" type="xs:date"/>
|
|
<xs:element name="dateOfDeath" type="xs:date" minOccurs="0"/>
|
|
</xs:sequence>
|
|
</xs:extension>
|
|
</xs:complexContent>
|
|
</xs:complexType>
|
|
<xs:element name="author" type="a:AuthorType"/>
|
|
<xs:complexType name="AuthorsType">
|
|
<xs:sequence>
|
|
<xs:element ref="a:author" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
<xs:complexType name="PersonType">
|
|
<xs:sequence>
|
|
<xs:element name="firstName" type="xs:string"/>
|
|
<xs:element name="lastName" type="xs:string"/>
|
|
<xs:element name="age" type="xs:int" minOccurs="0"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="id" type="xs:int"/>
|
|
</xs:complexType>
|
|
<xs:element name="authors" type="a:AuthorsType"/>
|
|
</xs:schema> |