blob: 831f8edcf316fad6cf7b7a6865657017ce23e47e [file] [log] [blame]
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="attr_group_simple" elementFormDefault="qualified">
<xs:attributeGroup name="address">
<xs:attribute name="State" type="xs:string"/>
<xs:attribute name="city" type="xs:string" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="homeAddress">
<xs:attributeGroup ref="address"/>
<xs:attribute name="road" type="xs:string"/>
</xs:attributeGroup>
<xs:element name="Student">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
</xs:sequence>
<xs:attributeGroup ref="homeAddress"/>
</xs:complexType>
</xs:element>
</xs:schema>