Click here to Skip to main content
15,885,689 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i want the xsd file for the XML as below mentions

XML
<ClaimsCollection>
  <Claim ClientType="General">
    <Metadata>
      <Field Name="Audit Year">2010</Field>
      <Field Name="Auditor Name">abc</Field>
      <Field Name="Audit Number">22</Field>
      <Field Name="Category">xyz</Field>
    </Metadata>
  </Claim>
</ClaimsCollection>


So here I want to checck validation for 'Audit Year' field that it should be present in xml and value provided for this node is required one. so if Name='Audit year' is not exist then it should throw error and its node value is blank it also should throw error message. i want to make few fields optional and few required also so please help me regarding this.
Posted
Comments
Maciej Los 11-Mar-15 6:43am    
What have you done till now?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900