Need help with dataset.xmlread and case (in)sensitivity

May 12 2009 2:12 PM
Hello all, I'm working on a program that reads a data set from an xml file and then works with the data. Unfortunately there are two versions of the xml schema, one uses capitalized names for the enitites, and the other doesn't (i.e. I have an entity "Switch" in one version and "switch" in the other.) I need my program to be able to read BOTH formats into the same data set scheme, as I need to access a number of values in the dataset directly. I have an xsd file generated by the XSD tool from one of the formats and included that in the C#/.net project, so I can access values like .switch[i].InitialState directly in the program. Unfortunately reading an xml file with the other format fails, as "Switch" is not read into the "switch" table. Both the dataset and the tables are set to case insensitive, but it still does not work. Is there anything I can set up for the readxml statement, or perhaps in terms of a cultureinfo, that will make this work? Any help is greatly appreciated Thanks Reiner