共用方式為


6.7 Find Request Schema

This section contains the contents of the FindRequest.xsd file. The additional files that this schema file requires to operate correctly are listed in the following table.

File name

Defining section

Find.xsd

6.6

 <?xml version="1.0" encoding="utf-8"?>
 <xs:schema
         id="Find"
         targetNamespace="Find:"
         xmlns:mstns="Find:"
         xmlns="Find:"
         xmlns:xs="http://www.w3.org/2001/XMLSchema"
         attributeFormDefault="qualified"
         elementFormDefault="qualified">
   <xs:include schemaLocation="Find.xsd"/>
   <xs:element name="Find">
     <xs:complexType>
       <xs:sequence>
         <xs:element name="SearchId">
           <xs:simpleType>
             <xs:restriction base="xs:string">               
               <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
             </xs:restriction>
           </xs:simpleType>
         </xs:element>
         <xs:element name="ExecuteSearch" minOccurs="1" maxOccurs="1">
           <xs:complexType> 
             <xs:choice minOccurs="1" maxOccurs="1">
               <xs:element name="MailBoxSearchCriterion" minOccurs="0" maxOccurs="1">
                 <xs:complexType>
                   <xs:all>
                     <xs:element name="Query" minOccurs="1" type="queryType" />
                     <xs:element name="Options" minOccurs="0" maxOccurs="1">
                       <xs:complexType>
                         <xs:sequence>
                           <xs:element ref="Range"/>
                           <xs:element name="DeepTraversal" type="EmptyTag" minOccurs="0" maxOccurs="1"/>
                           <xs:element name="Picture" minOccurs="0">
                             <xs:complexType>
                              <xs:all>
                              <xs:element name="MaxSize" type="xs:unsignedInt" minOccurs="0"/>
                                <xs:element name="MaxPictures" type="xs:unsignedInt" 
                   minOccurs="0"/>
                              </xs:all>
                            </xs:complexType>
                         </xs:element>
                         </xs:sequence>
                       </xs:complexType>
                     </xs:element>
                   </xs:all>
                 </xs:complexType>
               </xs:element> 
               <xs:element name="GALSearchCriterion" minOccurs="0" maxOccurs="1">
                 <xs:complexType>
                   <xs:all>
                     <xs:element name="Query">
                       <xs:simpleType>
                         <xs:restriction base="xs:string">
                           <xs:minLength value="4"/>
                           <xs:maxLength value="256"/>
                         </xs:restriction>
                       </xs:simpleType>
                     </xs:element>
                     <xs:element name="Options" minOccurs="0" maxOccurs="1">
                       <xs:complexType>
                         <xs:sequence>
                           <xs:element ref="Range" />
                           <xs:element name="Picture" minOccurs="0" maxOccurs="1">
                             <xs:complexType>
                               <xs:all>
                                 <xs:element name="MaxSize" type="xs:unsignedInt" minOccurs="0" maxOccurs="1" />
                                 <xs:element name="MaxPictures" type="xs:unsignedInt" minOccurs="0" maxOccurs="1" />
                               </xs:all>
                             </xs:complexType>
                           </xs:element>
                         </xs:sequence>
                       </xs:complexType>
                     </xs:element>
                   </xs:all>
                 </xs:complexType>
               </xs:element>
             </xs:choice>
           </xs:complexType>
         </xs:element>
       </xs:sequence>
     </xs:complexType>
   </xs:element>
 </xs:schema>