Click here to Skip to main content
15,567,468 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a XSD file with some enumeration. I am using XmlReader class to read xml files and validating against my XSD file with enumeration. But I want to accept enum values in any case like Job1, job1 etc.

conetnt of XSD file:

<xs:element name="JobType" xmlns:xs="#unknown">
      <xs:restriction base="xs:string">
         <xs:enumeration value="JOB1" />
         <xs:enumeration value="JOB2" />
         <xs:enumeration value="JOB3" />

Please suggest me if there is any way to deal with case insensitive comparision in C# 2.0

Manish Agarwal

1 solution

Perhaps this will help
Custom XPath Functions[^]
Share this answer
Manish K. Agarwal 12-Jul-12 8:25am    
This is not a solution to my query.

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