R
raulverde
I have an element declared like this :
<xs:element name="class">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="className" minOccurs="0" />
<xs:element name="students" type="student" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
Now i need an attirbute in "students" ... lets call it "totalStudents"
which would contain the number of students...is it possible ?
<xs:element name="class">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="className" minOccurs="0" />
<xs:element name="students" type="student" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
Now i need an attirbute in "students" ... lets call it "totalStudents"
which would contain the number of students...is it possible ?