i'm working with xml and i have to create an order form. i have the layout and everything needed for the order form. i'm having problems with one part. part of the order form specifies the amount of arms a robot is supposed to have. what i am trying to do is have the length as a child of the arm element. here is what i have so far. for my xsd file
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs: element name="orders">
 <xs:element name ="order" maxOccurs="unbounded">
    <xs:element name="case" type="xs:string" />
      <simpleType name="caseColor">
        <restriction base="string">
            <enumeration value="Lemonde" />
            <enumeration value="Strawberry" />
            <enumeration value="Lime" />
            <enumeration value="Blueberry" />
    <xs:element name="batteries" type="xs:integer" /> 
      <simpleType name="numOfBat">
    <xs:element name="recharger" /> 
    <xs:element name="arm" type="xs:integer" /> 
       <xs:element name ="length" minOccurs="2" maxOccurs="3"> 
    <camera> 2 </camera>
    <speech> Spanish </speech>
      <simpleType name = "language">
        <restriction base = "string">
            <enumeration value = "Spanish" />
            <enumerataion value = "Chinese" />
            <enumeration value = "English" />
            <enumeration value = "German" />
            <enumeration value = "French" />

here is my dtd file. i'm not sure how to incorporate the length of the arms in the dtd file
<?xml version="1.0"?>
<!DOCTYPE orders [
<! ELEMENT orders (order)>
<! ELEMENT order (case, batteries, recharger, armL, camera, speech)>
<! ELEMENT case (#PCDATA)>
<! ELEMENT batteries (#PCDATA)>
<! ELEMENT recharger (#PCDATA)>
<! ELEMENT camera (#PCDATA)>
<! ELEMENT speech (#PCDATA)>