title: How to to extract response by XPath Extractor in JMeter?
body: <p>I got the response like the following:</p>
  
  <pre><code>&lt;response&gt;
    &lt;status code='200' server_time='xxx' /&gt;
    &lt;tests&gt;
      &lt;test id='1' name='a!' status='Started' /&gt;
      &lt;test id='2' name='bb!' status='New' /&gt;
      &lt;test id='3' name='ccc!' status='New' /&gt;
      &lt;test id='4' name='dddd!' status='New' /&gt;
    &lt;/tests&gt;
  &lt;/response&gt;
  </code></pre>
  
  <p>I have already added a Xpath extractor into the sampler:</p>
  
  <pre><code>Reference name: mytest
  XPath Query: //test[@id='1']
  </code></pre>
  
  <p>But the return variable (mytest) is wrong.</p>
  
  <pre><code>OUT.println(mytest) --&gt; void
  </code></pre>
  
  <p>I'm a newbie with JMeter. What can I do to solve this?</p>