xref: /PHP-7.4/ext/dom/tests/book.xsd (revision bfa2c715)
1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <xs:element name="books">
4  <xs:complexType>
5   <xs:sequence>
6    <xs:element name="book" minOccurs="1" maxOccurs="unbounded">
7     <xs:complexType>
8      <xs:sequence>
9       <xs:element name="title" type="xs:string"/>
10       <xs:element name="author" type="xs:string"/>
11      </xs:sequence>
12      <xs:attribute name="is-hardback" type="xs:boolean" default="false" use="optional" />
13     </xs:complexType>
14    </xs:element>
15   </xs:sequence>
16  </xs:complexType>
17 </xs:element>
18</xs:schema>
19