How to exclude an enumeration value in XML file using XSD?
- by infant programmer
Is it possible to specify the value of a tag or attribute should not be like some_value ?
I have a strange requirement, where the xsd isn't aware of the values being sent to it. The value of that particular tag can be a string with any value except one value ( say data_migration).
The sender should be acknowledged with the error, if that particular value is sent.
Is it possible to specify this restriction?