title: How to validate XSD schema in java? I am getting different ans when i hanle integer datatype
body: <p>I want to validate AGE filed in my schema but i have given some restriction on it but when i give the string value in AGE filed which is not throwing the error like "Invalid data for AGE". May i know how to solve this issue? Please find my sample code below.</p>
  
  <p>XML File</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;Employee&gt;
      &lt;AGE&gt;thf&lt;/AGE&gt;
  &lt;/Employee&gt;
  </code></pre>
  
  <p>XSD File</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;xs:element name="Employee"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element name="AGE"&gt;
          &lt;xs:simpleType&gt;
              &lt;xs:restriction base="xs:integer"&gt;
                  &lt;xs:minInclusive value="1"/&gt;
                  &lt;xs:maxInclusive value="65"/&gt;
              &lt;/xs:restriction&gt;
          &lt;/xs:simpleType&gt;
       &lt;/xs:element&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>