XML Schema question

webmasterbeta

New Member
Hi there,anyone out there dealing with Schema definition.I got the following problem:I want define a elemet CATEGORY. As a category can contain sub-categoriesthe element itself is used again as "child"-element in the "parent"-element.I tried the following Schema-definition/. But is looks somehow strange tome:<xsd:element name="CATEGORY"><xsd:complexType><xsd:sequence><xsd:element ref="CATEGORY"><xsd:element ref="PART"/></xsd:sequence><xsd:attribute name="NAME" type="xsd:string" use="required"/><xsd:attribute name="SEQ" type="xsd:integer" use="required"/></xsd:complexType></xsd:element>Anyone having a tip for me ?Thx.Stefan
 
Back
Top