Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Adding an attribute to a simple type? Adding an attribute to a simple type?To: NULL Date: 9/1/2004 6:56:00 AM Hi there, I'm trying to do something in an XSD that I think should be possible, but that isn't. Giving a simple element an attribute. Basically what I tried is this (fragment): <xs:element name="DataType"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:enumeration value="int8"/> <xs:enumeration value="int16"/> </xs:restriction> </xs:simpleType> <xs:attribute name="IsArray" type="xs:string"/> </xs:element> This is not a valid item (attribute not expected) and I don't see why. It seems a logical way of saying this but it is not valid. Can someone tell me how I should write this? Thank you very much Tom Tempelaere. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
