XSD enumerations: restrict strings, integers, etc.
Posted by jpluimers on 2016/04/21
XSD enumerations are nice as they can be used to restrict simple XSD types to a set of values.
But they can also be hard if the set changes over time: restricting further is not possible, but extending isn’t always easy either.
Some interesting links:
- XSD: How to restrict enumeration values of a derived complex type? – Stack Overflow.
- Extend enumerated lists in XML schema.
- Sams Teach Yourself XML in 21 Days | Restricting Simple Types by Using XML Schema Facets | InformIT.
–jeroen
Leave a Reply