Training Day!

D

David

I am trying to construct a schema for a gym routine wherein
a week has sequence of days
a day has a chosen body part
a body part has a sequecnce of excercises
each exercise has a number of sets
and finally each set has a number of reps

Fairly straightforward enough? But Im not sure if Im going about it
the right way concerning complex types and attributes???

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="Week">
<xs:complexType>
<xs:sequence>
<xs:element name="Day">
<xs:complexType>
<xs:sequence>
<xs:element name="Bodypart">
<xs:complexType>
<xs:sequence>
<xs:element name="Excercise">
<xs:complexType>
<xs:sequence>
<xs:element name="Sets">
<xs:complexType>
<xs:sequence>
<xs:element name="Reps"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Monday" type="xs:string"/>
<xs:attribute name="Tuesday" type="xs:string"/>
<xs:attribute name="Wednesday" type="xs:string"/>
<xs:attribute name="Thursday" type="xs:string"/>
<xs:attribute name="Friday" type="xs:string"/>
<xs:attribute name="Saturday" type="xs:string"/>
<xs:attribute name="Sunday" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

THanks!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top