Restrict values for attribute with xsd

Whoxencedrorn

New Member
I have a xsd file that looks like this:\[code\]<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="Configurations"><xs:complexType><xs:sequence><xs:element maxOccurs="unbounded" name="Schema"><xs:complexType><xs:sequence> <xs:element maxOccurs="unbounded" name="Table"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="Key"> <xs:complexType> <xs:sequence> <xs:element name="Column" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="Name" type="xs:string" use="required" /> <xs:attribute name="Value" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="Name" type="xs:string" use="required" /> <xs:attribute name="Value" type="xs:string" use="required" /> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute name="Name" type="xs:string" use="required" /> </xs:complexType> </xs:element></xs:sequence><xs:attribute name="Name" type="xs:string" use="required" /><xs:attribute name="ConnectionString" type="xs:string" use="required" /></xs:complexType></xs:element></xs:sequence>\[/code\] And I just can't figure out how to create an \[code\]xs:enumeration\[/code\] for the \[code\]Name\[/code\] attribute of the \[code\]Schema\[/code\] element, so that just a few specified values can be used for that attribute. I'm not any good at xsd, a little help would be appreciated:)
 
Back
Top