Checkbox kind of fields with XML Schema

fordriyadh

New Member
I have the following piece of XSD:\[code\]<xsd:complexContent> <xsd:extension base="mes:Request"> <xsd:sequence> <xsd:element name="empId" type="xsd:string"/> <xsd:element name="empTaskId" type="xsd:int"/> <xsd:element name="empStateName" type="xsd:string"/> <xsd:element name="empTypeName" type="xsd:string"/> <xsd:element name="empActionName" type="xsd:string"/> <xsd:element name="empTransactionId" type="xsd:int"/> </xsd:sequence> </xsd:extension></xsd:complexContent>\[/code\]What I want, is to allow only one field as mandatory from any of the fields listed into \[code\]<sequence>\[/code\]. I tried using \[code\]<choice>\[/code\] but it behaves like radio buttons; I want the functionality of check boxes (1 or more fields - multiple choice).Can any one help me on how to achieve this?
 
Back
Top