source: trunk/examples/xmlpatterns/schema/files/contact.xsd

Last change on this file was 561, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.1 sources.

  • Property svn:eol-style set to native
File size: 955 bytes
Line 
1<?xml version="1.0"?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
3
4 <xsd:element name="contact">
5 <xsd:complexType>
6 <xsd:sequence>
7 <xsd:element name="givenName" type="xsd:string"/>
8 <xsd:element name="familyName" type="xsd:string"/>
9 <xsd:element name="birthdate" type="xsd:date" minOccurs="0"/>
10 <xsd:element name="homeAddress" type="address"/>
11 <xsd:element name="workAddress" type="address" minOccurs="0"/>
12 </xsd:sequence>
13 </xsd:complexType>
14 </xsd:element>
15
16 <xsd:complexType name="address">
17 <xsd:sequence>
18 <xsd:element name="street" type="xsd:string"/>
19 <xsd:element name="zipCode" type="xsd:string"/>
20 <xsd:element name="city" type="xsd:string"/>
21 <xsd:element name="country" type="xsd:string"/>
22 </xsd:sequence>
23 </xsd:complexType>
24
25</xsd:schema>
Note: See TracBrowser for help on using the repository browser.