Why won't this xml schema validate ? Visual studio says that the simpleContent tag is an invalid tag. If I then remove the attribute it says that the base type for my restriction is undefined in http://www.w3.org/2001/XMLSchema
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >
<xs:complexType name="Person">
<xs:attribute name="isProcessed" type="xs:boolean" />
<xs:simpleContent>
<xs:restriction base="xs:string">
<xs:enumeration value="Male" />
<xs:enumeration value="Female" />
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
@marc_s - I had tried the code button but it kept hiding all the xml in the preview area. I put the space in there so it would show up.
The end result of the xml should look like this
<person isprocessed="True" >Male</person>
Nothing fancy. Essentially I'm trying to create a simpleType with an attribute. But if I understand the W3 correctly, attributes can only be applied to complexTypes. So I tried to create a complexType with simple content inside.