title: xml:The value of the element is not valid
body: <p>I have created the xsd file using eclipse tool also I have created the xml file using that xsd file in the same tool. I am not able to recognize this errors. </p>
  
  <pre><code>cvc-type.3.1.3: The value 'tns:name' of element 'tns:name' is not valid.
  
  cvc-type.3.1.3: The value 'tns:description' of element 'tns:description' is not valid.
  </code></pre>
  
  <p>According to my analysis it's all right and well following the xsd file. </p>
  
  <p>Here is my xsd file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;schema xmlns="http://www.w3.org/2001/XMLSchema"
   targetNamespace="http://www.jaggorder.org/order"
    xmlns:tns="http://www.jaggorder.org/order"
     elementFormDefault="qualified"&gt;
  
     &lt;element name="order" type="tns:order"&gt;&lt;/element&gt;
     &lt;complexType name="order"&gt;
     &lt;sequence&gt;
     &lt;element name= "product" type = "string"&gt;&lt;/element&gt;
      &lt;sequence&gt;
     &lt;element name= "name" type = "tns:name_rs"&gt;&lt;/element&gt;
      &lt;element name= "description" type = "tns:desp"&gt;&lt;/element&gt;
       &lt;element name= "price" type = "int"&gt;&lt;/element&gt;
        &lt;element name= "category" type = "string"&gt;&lt;/element&gt;
  
    &lt;/sequence&gt;
     &lt;/sequence&gt;
   &lt;/complexType&gt;
  
    &lt;simpleType name="name_rs"&gt;
    &lt;restriction base="string"&gt;
    &lt;length value="20"&gt;&lt;/length&gt;&lt;/restriction&gt;
    &lt;/simpleType&gt;
  
    &lt;simpleType name="desp"&gt;
    &lt;restriction base="string"&gt;
    &lt;length value="100"&gt;&lt;/length&gt;&lt;/restriction&gt;
    &lt;/simpleType&gt;
  
     &lt;simpleType name="category_en"&gt;
    &lt;restriction base="string"&gt;
    &lt;enumeration value="electronics"&gt;&lt;/enumeration&gt;
    &lt;enumeration value="Books"&gt;&lt;/enumeration&gt;
    &lt;enumeration value="shoes"&gt;&lt;/enumeration&gt;
    &lt;/restriction&gt;
    &lt;/simpleType&gt;
  
  
  
  &lt;/schema&gt;
  </code></pre>
  
  <p>Here is my resultant xml file from xsd file. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;tns:order xmlns:tns="http://www.jaggorder.org/order" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jaggorder.org/order order.xsd "&gt;
    &lt;tns:product&gt;tns:product&lt;/tns:product&gt;
    &lt;tns:name&gt;tns:name&lt;/tns:name&gt;
    &lt;tns:description&gt;tns:description&lt;/tns:description&gt;
    &lt;tns:price&gt;0&lt;/tns:price&gt;
    &lt;tns:category&gt;tns:category&lt;/tns:category&gt;
  &lt;/tns:order&gt;
  </code></pre>