examples/xmlpatterns/schema/files/contact.xsd
changeset 0 1918ee327afb
equal deleted inserted replaced
-1:000000000000 0:1918ee327afb
       
     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>