I was pleasantly surprised to find the the XmlProvider tries to infers types. But I have run into a problem. There is an xml element whose value is 5.25.2. I would like it's type to be string. But XmlProvider seems to infer it to DateTime.
Is there a way to override the type for specific xml elements?
For now, I am working around by setting InferTypesFromValues=false.
> sample.Scan.ScannerVersion.Value;;
val it : System.DateTime =
5/25/2002 12:00:00 AM {Date = 5/25/2002 12:00:00 AM;
Day = 25;
DayOfWeek = Saturday;
DayOfYear = 145;
Hour = 0;
Kind = Local;
Millisecond = 0;
Minute = 0;
Month = 5;
Second = 0;
Ticks = 631578816000000000L;
TimeOfDay = 00:00:00;
Year = 2002;}