How could I do something like this in a XML schema?
Posted
by chobo2
on Stack Overflow
See other posts from Stack Overflow
or by chobo2
Published on 2010-05-26T18:09:51Z
Indexed on
2010/05/26
18:21 UTC
Read the original article
Hit count: 223
Hi
I want to mass create some users and I want to set the users timezone automatically. However I am using timezones generated by this
Dictionary<string, TimeZoneInfo> storeZoneName = TimeZoneInfo.GetSystemTimeZones().ToDictionary(z => z.DisplayName);
So I need the names to be exactly like the ones this list returns. So can I put like a constraint on that xml node that the name has to exactly match one of the names.
So I am guessing I will need to write this list somewhere in the file and that's what I am not sure if you can do something like that in a schema.
© Stack Overflow or respective owner