Supposing I had an XSD that might contain something like this:
<simpleType name="CELESTIAL_IMPORIUM_CATEGORY">
<restriction base="integer">
<enumeration id="BELONGING_TO_THE_EMPEROR" value="8001"/>
<enumeration id="EMBALMED" value="8002"/>
<enumeration id="TRAINED" value="8003"/>
<enumeration id="SUCKLING_PIGS" value="8004"/>
</restriction>
</simpleType>
Suppose I wanted to be able to get hold of both enumeration values, and their names (which are in the id attributes). I'm trying to figure out if this is possible.
Supposing a little bit further, I might be using xerces-c (3.1.1, say), and more specifically, be using classes from xercesc/framework/psvi. I've had a preliminary poke about, and things aren't looking promising:
- It looks like
XSSimpleTypeDefinition
provides access to enumeration details viagetMultiValueFacets()
- However, this returns an
XSMultiValueFacet
, which seems only to provide access to values (and annotations).
Is there, perhaps, something I'm missing?