title: cvc-complex-type.2.4.a: Invalid content was found starting with element 'Team'. One of '{"":Player}' is expected
body: <p>this is my first time asking a question here so forgive me if this is not properly formatted.</p>
  <p>can somebody please help me understand this error:</p>
  <blockquote>
  <p>cvc-complex-type.2.4.a: Invalid content was found starting with element 'Team'. One of '{&quot;&quot;:Player}' is expected.</p>
  </blockquote>
  <p>my .xml file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot; ?&gt;
  
  &lt;Teams xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;Homework3.xsd&quot;&gt;
  
  &lt;Team Name=&quot;Cubs&quot; Est=&quot;1876&quot; State=&quot;Illinois&quot; City=&quot;Chicago&quot; FieldName=&quot;Wrigley Field&quot; MascotName=&quot;Clark&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Willson Contreras&lt;/Name&gt;
          &lt;BirthDate&gt;1992-05-13&lt;/BirthDate&gt;
          &lt;Position&gt;Catcher&lt;/Position&gt;
          &lt;RBIs&gt;40&lt;/RBIs&gt;
          &lt;HRs&gt;17&lt;/HRs&gt;
          &lt;BattingAvg&gt;.227&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;David Bote&lt;/Name&gt;
          &lt;BirthDate&gt;1993-04-07&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;32&lt;/RBIs&gt;
          &lt;HRs&gt;8&lt;/HRs&gt;
          &lt;BattingAvg&gt;.202&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Ian Happ&lt;/Name&gt;
          &lt;BirthDate&gt;1994-08-12&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;48&lt;/RBIs&gt;
          &lt;HRs&gt;19&lt;/HRs&gt;
          &lt;BattingAvg&gt;.214&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jason Heyward&lt;/Name&gt;
          &lt;BirthDate&gt;1989-08-09&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;27&lt;/RBIs&gt;
          &lt;HRs&gt;7&lt;/HRs&gt;
          &lt;BattingAvg&gt;.213&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Patrick Wisdom&lt;/Name&gt;
          &lt;BirthDate&gt;1991-08-27&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;50&lt;/RBIs&gt;
          &lt;HRs&gt;25&lt;/HRs&gt;
          &lt;BattingAvg&gt;.239&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;White Sox&quot; Est=&quot;1900&quot; State=&quot;Illinois&quot; City=&quot;Chicago&quot; FieldName=&quot;Guaranteed Rate Field&quot; MascotName=&quot;Southpaw&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jose Abreu&lt;/Name&gt;
          &lt;BirthDate&gt;1987-01-29&lt;/BirthDate&gt;
          &lt;Position&gt;First Base&lt;/Position&gt;
          &lt;RBIs&gt;103&lt;/RBIs&gt;
          &lt;HRs&gt;28&lt;/HRs&gt;
          &lt;BattingAvg&gt;.265&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Leury Garcia&lt;/Name&gt;
          &lt;BirthDate&gt;1991-03-18&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;46&lt;/RBIs&gt;
          &lt;HRs&gt;3&lt;/HRs&gt;
          &lt;BattingAvg&gt;.255&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Brian Goodwin&lt;/Name&gt;
          &lt;BirthDate&gt;1990-11-02&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;26&lt;/RBIs&gt;
          &lt;HRs&gt;8&lt;/HRs&gt;
          &lt;BattingAvg&gt;.229&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Yasmani Grandal&lt;/Name&gt;
          &lt;BirthDate&gt;1988-11-08&lt;/BirthDate&gt;
          &lt;Position&gt;Catcher&lt;/Position&gt;
          &lt;RBIs&gt;53&lt;/RBIs&gt;
          &lt;HRs&gt;19&lt;/HRs&gt;
          &lt;BattingAvg&gt;.227&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Cesar Hernandez&lt;/Name&gt;
          &lt;BirthDate&gt;1990-05-23&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;52&lt;/RBIs&gt;
          &lt;HRs&gt;21&lt;/HRs&gt;
          &lt;BattingAvg&gt;.226&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Yankees&quot; Est=&quot;1901&quot; State=&quot;New York&quot; City=&quot;New York City&quot; FieldName=&quot;Yankee Stadium&quot; MascotName=&quot;N/A&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Anthony Rizzo&lt;/Name&gt;
          &lt;BirthDate&gt;1989-08-08&lt;/BirthDate&gt;
          &lt;Position&gt;First Base&lt;/Position&gt;
          &lt;RBIs&gt;53&lt;/RBIs&gt;
          &lt;HRs&gt;18&lt;/HRs&gt;
          &lt;BattingAvg&gt;.249&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Joey Gallo&lt;/Name&gt;
          &lt;BirthDate&gt;1993-11-19&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;68&lt;/RBIs&gt;
          &lt;HRs&gt;31&lt;/HRs&gt;
          &lt;BattingAvg&gt;.196&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Brett Gardner&lt;/Name&gt;
          &lt;BirthDate&gt;1983-08-24&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;26&lt;/RBIs&gt;
          &lt;HRs&gt;6&lt;/HRs&gt;
          &lt;BattingAvg&gt;.213&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Aaron Judge&lt;/Name&gt;
          &lt;BirthDate&gt;1992-04-26&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;75&lt;/RBIs&gt;
          &lt;HRs&gt;30&lt;/HRs&gt;
          &lt;BattingAvg&gt;.291&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;DJ LeMahieu&lt;/Name&gt;
          &lt;BirthDate&gt;1988-07-13&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;54&lt;/RBIs&gt;
          &lt;HRs&gt;9&lt;/HRs&gt;
          &lt;BattingAvg&gt;.268&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Dodgers&quot; Est=&quot;1883&quot; State=&quot;California&quot; City=&quot;Los Angeles&quot; FieldName=&quot;Dodgers Stadium&quot; MascotName=&quot;N/A&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Cody Bellinger&lt;/Name&gt;
          &lt;BirthDate&gt;1995-07-13&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;32&lt;/RBIs&gt;
          &lt;HRs&gt;9&lt;/HRs&gt;
          &lt;BattingAvg&gt;.165&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Mookie Betts&lt;/Name&gt;
          &lt;BirthDate&gt;1992-10-07&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;47&lt;/RBIs&gt;
          &lt;HRs&gt;19&lt;/HRs&gt;
          &lt;BattingAvg&gt;.266&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Albert Pujols&lt;/Name&gt;
          &lt;BirthDate&gt;1980-01-16&lt;/BirthDate&gt;
          &lt;Position&gt;First Base&lt;/Position&gt;
          &lt;RBIs&gt;48&lt;/RBIs&gt;
          &lt;HRs&gt;16&lt;/HRs&gt;
          &lt;BattingAvg&gt;.239&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Justin Turner&lt;/Name&gt;
          &lt;BirthDate&gt;1984-11-23&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;71&lt;/RBIs&gt;
          &lt;HRs&gt;21&lt;/HRs&gt;
          &lt;BattingAvg&gt;.279&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Trea Turner&lt;/Name&gt;
          &lt;BirthDate&gt;1993-06-30&lt;/BirthDate&gt;
          &lt;Position&gt;Shortstop&lt;/Position&gt;
          &lt;RBIs&gt;58&lt;/RBIs&gt;
          &lt;HRs&gt;21&lt;/HRs&gt;
          &lt;BattingAvg&gt;.319&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt; 
  &lt;Team Name=&quot;Brewers&quot; Est=&quot;1969&quot; State=&quot;Wisconsin&quot; City=&quot;Milwaukee&quot; FieldName=&quot;American Family Field&quot; MascotName=&quot;Bernie Brewer&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jackie Bradley Jr.&lt;/Name&gt;
          &lt;BirthDate&gt;1990-04-19&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;29&lt;/RBIs&gt;
          &lt;HRs&gt;6&lt;/HRs&gt;
          &lt;BattingAvg&gt;.169&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Eduardo Escobar&lt;/Name&gt;
          &lt;BirthDate&gt;1989-01-05&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;73&lt;/RBIs&gt;
          &lt;HRs&gt;24&lt;/HRs&gt;
          &lt;BattingAvg&gt;.256&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Omar Narvaez&lt;/Name&gt;
          &lt;BirthDate&gt;1992-02-10&lt;/BirthDate&gt;
          &lt;Position&gt;Catcher&lt;/Position&gt;
          &lt;RBIs&gt;45&lt;/RBIs&gt;
          &lt;HRs&gt;11&lt;/HRs&gt;
          &lt;BattingAvg&gt;.283&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jace Peterson&lt;/Name&gt;
          &lt;BirthDate&gt;1990-05-09&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;30&lt;/RBIs&gt;
          &lt;HRs&gt;5&lt;/HRs&gt;
          &lt;BattingAvg&gt;.272&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Christian Yelich&lt;/Name&gt;
          &lt;BirthDate&gt;1991-15-05&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;41&lt;/RBIs&gt;
          &lt;HRs&gt;8&lt;/HRs&gt;
          &lt;BattingAvg&gt;.255&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Indians&quot; Est=&quot;1894&quot; State=&quot;Ohio&quot; City=&quot;Cleveland&quot; FieldName=&quot;Progressive Field&quot; MascotName=&quot;Slider&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Bobby Bradley&lt;/Name&gt;
          &lt;BirthDate&gt;1996-05-29&lt;/BirthDate&gt;
          &lt;Position&gt;First Base&lt;/Position&gt;
          &lt;RBIs&gt;31&lt;/RBIs&gt;
          &lt;HRs&gt;12&lt;/HRs&gt;
          &lt;BattingAvg&gt;.222&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Andres Gimenez&lt;/Name&gt;
          &lt;BirthDate&gt;1998-07-24&lt;/BirthDate&gt;
          &lt;Position&gt;Shortstop&lt;/Position&gt;
          &lt;RBIs&gt;9&lt;/RBIs&gt;
          &lt;HRs&gt;2&lt;/HRs&gt;
          &lt;BattingAvg&gt;.206&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Austin Hedges&lt;/Name&gt;
          &lt;BirthDate&gt;1992-08-18&lt;/BirthDate&gt;
          &lt;Position&gt;Catcher&lt;/Position&gt;
          &lt;RBIs&gt;27&lt;/RBIs&gt;
          &lt;HRs&gt;8&lt;/HRs&gt;
          &lt;BattingAvg&gt;.182&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Daniel Johnson&lt;/Name&gt;
          &lt;BirthDate&gt;1995-07-11&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;5&lt;/RBIs&gt;
          &lt;HRs&gt;4&lt;/HRs&gt;
          &lt;BattingAvg&gt;.230&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Oscar Mercado&lt;/Name&gt;
          &lt;BirthDate&gt;1994-12-16&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;11&lt;/RBIs&gt;
          &lt;HRs&gt;3&lt;/HRs&gt;
          &lt;BattingAvg&gt;.221&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Royals&quot; Est=&quot;1969&quot; State=&quot;Missouri&quot; City=&quot;Kansas City&quot; FieldName=&quot;Kauffman Stadium&quot; MascotName=&quot;Sluggerrr&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Hanser Alberto&lt;/Name&gt;
          &lt;BirthDate&gt;1992-10-17&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;20&lt;/RBIs&gt;
          &lt;HRs&gt;2&lt;/HRs&gt;
          &lt;BattingAvg&gt;.258&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Andrew Benintendi&lt;/Name&gt;
          &lt;BirthDate&gt;1994-07-06&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;46&lt;/RBIs&gt;
          &lt;HRs&gt;12&lt;/HRs&gt;
          &lt;BattingAvg&gt;.254&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Hunter Dozier&lt;/Name&gt;
          &lt;BirthDate&gt;1991-08-22&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;39&lt;/RBIs&gt;
          &lt;HRs&gt;10&lt;/HRs&gt;
          &lt;BattingAvg&gt;.202&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Nicky Lopez&lt;/Name&gt;
          &lt;BirthDate&gt;1995-03-13&lt;/BirthDate&gt;
          &lt;Position&gt;Shortstop&lt;/Position&gt;
          &lt;RBIs&gt;34&lt;/RBIs&gt;
          &lt;HRs&gt;1&lt;/HRs&gt;
          &lt;BattingAvg&gt;.290&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Whit Merrifield&lt;/Name&gt;
          &lt;BirthDate&gt;1989-01-24&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;68&lt;/RBIs&gt;
          &lt;HRs&gt;10&lt;/HRs&gt;
          &lt;BattingAvg&gt;.278&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Reds&quot; Est=&quot;1881&quot; State=&quot;Ohio&quot; City=&quot;Cincinati&quot; FieldName=&quot;Great American Ball Park&quot; MascotName=&quot;Mr. Redlegs&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Shogo Akiyama&lt;/Name&gt;
          &lt;BirthDate&gt;1988-04-16&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;12&lt;/RBIs&gt;
          &lt;HRs&gt;0&lt;/HRs&gt;
          &lt;BattingAvg&gt;.199&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Aristides Aquino&lt;/Name&gt;
          &lt;BirthDate&gt;1994-04-22&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;20&lt;/RBIs&gt;
          &lt;HRs&gt;9&lt;/HRs&gt;
          &lt;BattingAvg&gt;.195&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Tucker Barnhart&lt;/Name&gt;
          &lt;BirthDate&gt;1991-01-07&lt;/BirthDate&gt;
          &lt;Position&gt;Catcher&lt;/Position&gt;
          &lt;RBIs&gt;43&lt;/RBIs&gt;
          &lt;HRs&gt;7&lt;/HRs&gt;
          &lt;BattingAvg&gt;.269&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Asdrubal Cabrera&lt;/Name&gt;
          &lt;BirthDate&gt;1985-11-13&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;41&lt;/RBIs&gt;
          &lt;HRs&gt;7&lt;/HRs&gt;
          &lt;BattingAvg&gt;.235&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Nick Castellanos&lt;/Name&gt;
          &lt;BirthDate&gt;1992-03-04&lt;/BirthDate&gt;
          &lt;Position&gt;Right Field&lt;/Position&gt;
          &lt;RBIs&gt;78&lt;/RBIs&gt;
          &lt;HRs&gt;26&lt;/HRs&gt;
          &lt;BattingAvg&gt;.321&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Red Sox&quot; Est=&quot;1901&quot; State=&quot;Massachusetts&quot; City=&quot;Boston&quot; FieldName=&quot;Fenway Park&quot; MascotName=&quot;Wally the Green Monster&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jonathan Arauz&lt;/Name&gt;
          &lt;BirthDate&gt;1998-08-03&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;7&lt;/RBIs&gt;
          &lt;HRs&gt;3&lt;/HRs&gt;
          &lt;BattingAvg&gt;.169&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Franchy Cordero&lt;/Name&gt;
          &lt;BirthDate&gt;1994-09-02&lt;/BirthDate&gt;
          &lt;Position&gt;Left Field&lt;/Position&gt;
          &lt;RBIs&gt;9&lt;/RBIs&gt;
          &lt;HRs&gt;1&lt;/HRs&gt;
          &lt;BattingAvg&gt;.189&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Bobby Dalbec&lt;/Name&gt;
          &lt;BirthDate&gt;1995-06-29&lt;/BirthDate&gt;
          &lt;Position&gt;First Base&lt;/Position&gt;
          &lt;RBIs&gt;65&lt;/RBIs&gt;
          &lt;HRs&gt;18&lt;/HRs&gt;
          &lt;BattingAvg&gt;.240&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Rafael Devers&lt;/Name&gt;
          &lt;BirthDate&gt;1996-10-24&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;101&lt;/RBIs&gt;
          &lt;HRs&gt;33&lt;/HRs&gt;
          &lt;BattingAvg&gt;.276&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Jose Iglesias&lt;/Name&gt;
          &lt;BirthDate&gt;1990-01-05&lt;/BirthDate&gt;
          &lt;Position&gt;Shortstop&lt;/Position&gt;
          &lt;RBIs&gt;42&lt;/RBIs&gt;
          &lt;HRs&gt;8&lt;/HRs&gt;
          &lt;BattingAvg&gt;.261&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  &lt;Team Name=&quot;Cardinals&quot; Est=&quot;1882&quot; State=&quot;Missouri&quot; City=&quot;St. Louis&quot; FieldName=&quot;Busch Stadium&quot; MascotName=&quot;Fredbird&quot;&gt;
      &lt;Player&gt;
          &lt;Name&gt;Nolan Arenado&lt;/Name&gt;
          &lt;BirthDate&gt;1991-04-16&lt;/BirthDate&gt;
          &lt;Position&gt;Third Base&lt;/Position&gt;
          &lt;RBIs&gt;88&lt;/RBIs&gt;
          &lt;HRs&gt;29&lt;/HRs&gt;
          &lt;BattingAvg&gt;.257&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Harrison Bader&lt;/Name&gt;
          &lt;BirthDate&gt;1994-06-03&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;37&lt;/RBIs&gt;
          &lt;HRs&gt;11&lt;/HRs&gt;
          &lt;BattingAvg&gt;.248&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Dylan Carlson&lt;/Name&gt;
          &lt;BirthDate&gt;1998-10-23&lt;/BirthDate&gt;
          &lt;Position&gt;Center Field&lt;/Position&gt;
          &lt;RBIs&gt;48&lt;/RBIs&gt;
          &lt;HRs&gt;13&lt;/HRs&gt;
          &lt;BattingAvg&gt;.259&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Matt Carpenter&lt;/Name&gt;
          &lt;BirthDate&gt;1985-11-26&lt;/BirthDate&gt;
          &lt;Position&gt;Second Base&lt;/Position&gt;
          &lt;RBIs&gt;21&lt;/RBIs&gt;
          &lt;HRs&gt;3&lt;/HRs&gt;
          &lt;BattingAvg&gt;.176&lt;/BattingAvg&gt;
      &lt;/Player&gt;
      &lt;Player&gt;
          &lt;Name&gt;Paul DeJong&lt;/Name&gt;
          &lt;BirthDate&gt;1993-08-02&lt;/BirthDate&gt;
          &lt;Position&gt;Shortstop&lt;/Position&gt;
          &lt;RBIs&gt;40&lt;/RBIs&gt;
          &lt;HRs&gt;16&lt;/HRs&gt;
          &lt;BattingAvg&gt;.197&lt;/BattingAvg&gt;
      &lt;/Player&gt;
  &lt;/Team&gt;
  </code></pre>
  
  <p>my .xsd file:</p>
  <pre><code>    &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;
  
      &lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;
      
      &lt;xs:simpleType name=&quot;RBIsType&quot;&gt;
          &lt;xs:restriction base=&quot;xs:integer&quot;&gt;
             &lt;xs:minInclusive value=&quot;0&quot; /&gt;
             &lt;xs:maxInclusive value=&quot;150&quot; /&gt;     
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      
      &lt;xs:simpleType name=&quot;NameType&quot;&gt;
          &lt;xs:restriction base=&quot;xs:string&quot;&gt;
             &lt;xs:pattern value=&quot;[A-Z][\-A-Za-z './]+&quot; /&gt; 
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      
      &lt;xs:simpleType name=&quot;EstType&quot;&gt;
          &lt;xs:restriction base=&quot;xs:string&quot;&gt;
             &lt;xs:pattern value=&quot;\d\d\d\d&quot; /&gt; 
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      
      &lt;xs:simpleType name=&quot;baType&quot;&gt;
          &lt;xs:restriction base=&quot;xs:decimal&quot;&gt;
             &lt;xs:minInclusive value=&quot;.000&quot; /&gt;
             &lt;xs:maxInclusive value=&quot;.500&quot;    /&gt;     
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      
      &lt;xs:simpleType name=&quot;dateType&quot;&gt;
          &lt;xs:restriction base=&quot;xs:string&quot;&gt;
              &lt;xs:pattern value=&quot;\d\d\d\d-\d\d-\d\d&quot; /&gt;
          &lt;/xs:restriction&gt;
      &lt;/xs:simpleType&gt;
      
      &lt;xs:element name=&quot;Player&quot;&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name=&quot;Name&quot; type=&quot;NameType&quot; /&gt;
                  &lt;xs:element name=&quot;BirthDate&quot; type=&quot;dateType&quot; /&gt;
                  &lt;xs:element name=&quot;Position&quot; type=&quot;NameType&quot; /&gt;
                  &lt;xs:element name=&quot;RBIs&quot; type=&quot;RBIsType&quot; /&gt;
                  &lt;xs:element name=&quot;HRs&quot; type=&quot;RBIsType&quot; /&gt;
                  &lt;xs:element name=&quot;BattingAvg&quot; type=&quot;baType&quot; /&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
      
      &lt;xs:element name=&quot;Team&quot;&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element ref=&quot;Player&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;5&quot; /&gt;
              &lt;/xs:sequence&gt;
              &lt;xs:attribute name=&quot;Name&quot; type=&quot;NameType&quot; use=&quot;required&quot; /&gt;
              &lt;xs:attribute name=&quot;Est&quot; type=&quot;EstType&quot; use=&quot;required&quot; /&gt;
              &lt;xs:attribute name=&quot;State&quot; type=&quot;NameType&quot; use=&quot;required&quot; /&gt;
              &lt;xs:attribute name=&quot;City&quot; type=&quot;NameType&quot; use=&quot;required&quot; /&gt;
              &lt;xs:attribute name=&quot;FieldName&quot; type=&quot;NameType&quot; use=&quot;required&quot; /&gt;
              &lt;xs:attribute name=&quot;MascotName&quot; type=&quot;NameType&quot; use=&quot;optional&quot; /&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
      
      &lt;xs:element name=&quot;Teams&quot;&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element ref=&quot;Player&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;10&quot; /&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
      
  &lt;/xs:schema&gt;
  </code></pre>
  <p>I have updated this post with more better, and hopefully easier to understand code. I am still receiving the same error message above.</p>