How to exclude an enumeration value in XML file using XSD?

Posted by infant programmer on Stack Overflow See other posts from Stack Overflow or by infant programmer
Published on 2010-03-24T13:02:50Z Indexed on 2010/03/24 13:03 UTC
Read the original article Hit count: 536

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about Xml

Related posts about xsd