xref: /PHP-5.4/ext/simplexml/tests/bug25756.xsd (revision 503d74aa)
1<?xml version="1.0" encoding="UTF-8" ?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3  <xsd:element name="foo" type="foo-type" />
4  <xsd:complexType name="item-type">
5    <xsd:all>
6      <xsd:element name="product-name" type="xsd:string"
7       minOccurs="1" maxOccurs="1"/>
8      <xsd:element name="quantity" type="xsd:decimal"
9       minOccurs="1" maxOccurs="1"/>
10    </xsd:all>
11  </xsd:complexType>
12  <xsd:complexType name="foo-type">
13    <xsd:sequence>
14      <xsd:element name="items" minoccurs="1" maxOccurs="1">
15        <xsd:complexType>
16          <xsd:sequence>
17            <xsd:element name="item" type="item-type"
18             minOccurs="0" maxOccurs="unbounded" />
19          </xsd:sequence>
20        </xsd:complexType>
21      </xsd:element>
22    </xsd:sequence>
23  </xsd:complexType>
24</xsd:schema>
25