title: Can't validate xml against schema due to xmlns:xsi="..." and xsi:type="..." on an element
body: <p>I'm trying to validate a xml response against an xsd schema in JMeter, but assertion always fails with the error </p>
  
  <blockquote>
    <p>Cannot resolve 'job' to a type definition for element 'content'</p>
  </blockquote>
  
  <p>The xml response is:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;result&gt;
      &lt;state&gt;
          &lt;tag&gt;value&lt;/tag&gt;
      &lt;/state&gt;
      &lt;content 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:type="job"&gt;
          &lt;status&gt;ok&lt;/status&gt;
      &lt;/content&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>and the schema is:</p>
  
  <pre><code>&lt;xs:schema attributeFormDefault="unqualified" 
             elementFormDefault="qualified" 
             xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;xs:element name="result"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name="state"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                &lt;xs:element type="xs:string" 
                            name="tag"/&gt;
              &lt;/xs:sequence&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
          &lt;xs:element name="content"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                &lt;xs:element type="xs:string" 
                            name="status"/&gt;
              &lt;/xs:sequence&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
        &lt;/xs:sequence&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>I can not modify the response but i can change the schema. How could i solve this problem?</p>
  
  <p>thanks !</p>