I'm finding the XmlSchema object model very hard to follow :-(
I've figured out by trial and error how to do most things I need,
but this one has me beat.
Suppose my schema has a simple type defined as follows:
<xs:simpleType name="abc">
<xs:restriction base="xs:string">
<xs:enumeration value="A" />
<xs:enumeration value="B" />
<xs:enumeration value="C" />
</xs:restriction>
</xs:simpleType>
Now suppose one of my elements has an attribute whose type
is the "abc" type shown above, as in:
<xs:attribute name="attribute1" type="abc" />
If I navigate through the SOM to find the attribute,
my XmlSchemaAttribute object will have its SchemaTypeName.Name
property set to "abc".
My question is: how do I find out the basic type of the
attribute? I simply want to know that it's based on the
xs:string built-in type, but I can't find any way to
do that using the SOM...