We have an .xsd and .xml file using that schema.
In programming, we need to deserialize this xml file into a class
instance. Then I just need to know what culture it is using while
deserialzing this xml file?
We know that, if we use TryParse("1.000", out d) to parse a sting into
a number, the current culture will be used if we don't specify
culture. If we use TryParse("1.000", NumberStyles.Number,new
CultureInfo("en-US"),out d), the number will be parsed in English
culture. Then we can use different culture to parse.
But in deserilizing, we can't see how it is parsed when we have a
string for number and what culture is used. If we have a number
"1.000" in the xml file, will it be parsed into 1 (in English culture)
or 1000 (in Russion culture, I guess.)?
So my question is, how to specify cultureInfo when deserilizing an
xml? Is it specified as an attribute in the xml or is it specified
when we create an xmlSerializer?
Thanks!