title: XML Schema Name Space
body: <p>New to XML but can't figure out what I'm doing wrong here. Directions say: using Russian Doll design create a schema named menu.xsd, specify the target namespace for the schema and save changes. In menu.xml, specify the location of the schema file and save changes. Validate.</p>
  
  <p>Document is not validating. Getting error: </p>
  
  <blockquote>
    <p>"Validation of current file using XML schema:</p>
    
    <p>ERROR: Element '{<a href="http://example.com/chestershartland/menu" rel="nofollow">http://example.com/chestershartland/menu</a>}itemName': This >element is not expected. Expected is ( itemName ).</p>
  </blockquote>
  
  <p>My XML file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="no" ?&gt;
  &lt;menuItem   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns="http://example.com/chestershartland/menu"
              xsi:schemaLocation="http://example.com/chestershartland/menu menu.xsd"&gt;
     &lt;itemName&gt;Oatmeal Breakfast&lt;/itemName&gt;
     &lt;description&gt;
     &lt;![CDATA[Our oatmeal is served warm with fresh fruit, pecans, raisins,
        and 100% maple syrup. Available all day.
     ]]&gt;
     &lt;/description&gt;
     &lt;price&gt;6.95&lt;/price&gt;
     &lt;icon&gt;&amp;#9824;&lt;/icon&gt;  
     &lt;icon&gt;&amp;#9829;&lt;/icon&gt;
  
  &lt;/menuItem&gt;
  </code></pre>
  
  <p>My menu.xsd file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
              xmlns="http://example.com/chestershartland/menu"
              targetNamespace="http://example.com/chestershartland/menu"&gt;
  
      &lt;xs:element name="menuItem"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                  &lt;xs:element name="itemName" type="xs:string" /&gt;
                  &lt;xs:element name="description" type="xs:string" /&gt;
                  &lt;xs:element name="price" type="xs:string" /&gt;
                  &lt;xs:element name="icon" minOccurs="0" maxOccurs="unbounded" /&gt;
              &lt;/xs:sequence&gt;
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  
   &lt;/xs:schema&gt;
  </code></pre>
  
  <p>Thanks in advance for helping! It seems to have something to do with namespaces, but I'm just not getting it.</p>