I have the following XSD code:
Code:
<xs:element name="Job" maxOccurs="unbounded">
 <xs:complexType>
   <xs:sequence>

     <xs:element name="Element1" type="xs:string"/>
     <xs:element name="Element2" type="xs:string" minOccurs="0"/>

  </xs:sequence>
 </xs:complexType>
</xs:element>
I'm trying to make the first element compulsory and the second element optional. But when I validate documents against this schema that do not contain <Element2>, I get a validation error claiming that a required element is missing...