2.12 CompoundFilterCondition

The CompoundFilterCondition element specifies a type of FilterCondition that combines other FilterCondition elements.

Conditions: Specifies the ordered set of FilterCondition elements to be logically combined together. This Conditions element is optional and MUST NOT be specified more than once.

Conditions.FilterCondition: Specifies a FilterCondition. The Conditions.FilterCondition element is optional and can be specified more than once.

Operator: Specifies the desired logical combination of the Conditions. The Operator element is optional and MUST NOT be specified more than once.

The values and meanings for the Operator element are as follows.

Value

Meaning

All

All of the Conditions evaluate to true.

Any

Any of the Conditions evaluates to true.

NotAll

Any of the Conditions evaluates to false.

NotAny

All of the Conditions evaluate to false.

The following is the XSD for the CompoundFilterCondition element.

   <xs:complexType name="CompoundFilterCondition">
     <xs:complexContent>
       <xs:extension base="FilterCondition">
         <xs:sequence>
           <xs:element name="Conditions" minOccurs="0">
             <xs:complexType>
               <xs:sequence>
                 <xs:element name="FilterCondition" type="FilterCondition" 
                             minOccurs="0" maxOccurs="unbounded" />
               </xs:sequence>
             </xs:complexType>
           </xs:element>
           <xs:element name="Operator" minOccurs="0">
             <xs:simpleType>
               <xs:restriction base="xs:string">
                 <xs:enumeration value="All" />
                 <xs:enumeration value="Any" />
                 <xs:enumeration value="NotAll" />
                 <xs:enumeration value="NotAny" />
               </xs:restriction>
             </xs:simpleType>
           </xs:element>
         </xs:sequence>
       </xs:extension>
     </xs:complexContent>
   </xs:complexType>