Replacing old XSD with new
===

I have been tasked to replace the xsd for a particular solution.  However, I keep getting an "element is not supported in this context."

Here is the original xsd:

        public const string Xsd = @"
    <xs:schema attributeFormDefault='unqualified' elementFormDefault='qualified'     xmlns:xs='http://www.w3.org/2001/XMLSchema'>
      <xs:element name='DataRow'>
        <xs:complexType>
          <xs:sequence>
            <xs:element maxOccurs='unbounded' name='Data'>              
              <xs:complexType>
                <xs:attribute name='Site' type='xs:string' use='required' />
                <xs:attribute name='Month_Num' type='xs:unsignedShort' use='required' />
                <xs:attribute name='Numerator' type='xs:unsignedByte' use='required' />
                <xs:attribute name='Data_Indicator' type='xs:string' use='required' />
                <xs:attribute name='Budgeted' type='xs:unsignedByte' use='required' />
                <xs:attribute name='Executive_Comments' type='xs:string' use='required' />
                <xs:attribute name='Fleet_Executive_Comments' type='xs:string' use='required' />
             </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:schema>";

Here is what I am supposed to be replacing it with:

    <xs:schema attributeFormDefault='unqualified' elementFormDefault='qualified' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
      <MonthlyValues>
        <MonthlyValue IndicatorName='name' LocationName='name' GroupingName='name' Year='MonthNum.Value.Year' Month='MonthNum.Value.Month' Numerator='Numerator' Budget='Budget'>
        </MonthlyValue>
     </MonthlyValues>
    </xs:schema>

The schema was made by someone else and I was supposed to just be able to replace it.  Unfortunately its not working out that way and I know very little about it.

should I change

     <MonthlyValues> 
to 

    <xs:element name='MonthlyValues> and keep the 
    <xs:sequence>
       <xs:element maxOccurs='unbounded' name='MonthlyValues'>
          <xs:complexType>

and add the 

    <MonthlyValue IndicatorName='name' LocationName='name' GroupingName='name' Year='MonthNum.Value.Year' Month='MonthNum.Value.Month' Numerator='Numerator' Budget='Budget'>
    </MonthlyValue>

afterward?  Actually, I tried that and it didn't work, but is there something similar I have to do?


    