Is there a way to represent a [Flags] style enum in XML Schema? Say I have
a flags enum like so:
[Flags]
public enum dayOfWeek {
Mon,
Tue,
Wed,
All = Mon | Tue | Wed;
}
I'd like to have my XML be able to use an element attribute like so:
<SomeElement dayOfWeek="Mon|Wed" />
Is this possible with xsd:enumeration? If not, I can fall back to making
this attribute type xsd:string it's just that I don't get the benefits of
schema validation on the values anymore. Or can I? Is there a way to hook
schema validation for a particular attribute value?
--
Keith