35 lines
1.2 KiB
XML
35 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
<xs:simpleType name="limitedString">
|
|
<xs:restriction base="xs:string">
|
|
<xs:maxLength value="50"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="postalCode">
|
|
<xs:restriction base="xs:string">
|
|
<xs:pattern value="\d{2}-\d{3}"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:simpleType name="phoneNumber">
|
|
<xs:restriction base="xs:string">
|
|
<xs:minLength value="9"/>
|
|
<xs:maxLength value="15"/>
|
|
<xs:pattern value="\d+"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
<xs:element name="BusinessCard">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:element name="FirstName" type="limitedString"/>
|
|
<xs:element name="LastName" type="limitedString"/>
|
|
<xs:element name="PhoneNumber" type="phoneNumber"/>
|
|
<xs:element name="Email" type="xs:string"/>
|
|
<xs:element name="PostalAddress" type="xs:string"/>
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
</xs:element>
|
|
</xs:schema>
|