title: JMeters XPath2 Extractor always return default value
body: <p>I'm trying to extract a value from SOAP response using XPath2 Extractor but it always return the default value.</p>
  
  <p>My JMeter configuration are as following:</p>
  
  <ol>
  <li>Master : 1 machine </li>
  <li>Slave : 1 machine (if successful I need to setup
  10 slave machines.) </li>
  <li>JMeter Version : 5.0</li>
  </ol>
  
  <p>XML response looks like following:</p>
  
  <pre><code>&lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;s:Header&gt;
      &lt;h:ResHeader xmlns:h="http://www.ssss.com/ResHeader/SSS" xmlns="http://www.SSS.com/ResHeader/SSS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
          ...
      &lt;/h:ResHeader&gt;
    &lt;/s:Header&gt;
    &lt;s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
      &lt;element  xmlns="http://www.SSS.com/xx/xx"&gt;
          ...
          &lt;ServerSettingInfo&gt;
              &lt;ServerUrl&gt;https://SomeServer.com/XX&lt;/ServerUrl&gt;
              &lt;UserName&gt;SomeUser&lt;/UserName&gt;
              &lt;Password&gt;SomePassword&lt;/Password&gt;
          &lt;/ServerSettingInfo&gt;
          ...
      &lt;/element&gt;
    &lt;/s:Body&gt;
   &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>I have tried following XPath expression :</p>
  
  <ol>
  <li>//ServerSettingInfo/ServerUrl/text()</li>
  <li>//ServerUrl/text()</li>
  <li>/s:Envelope/s:Body/element/ServerSettingInfo/ServerUrl/test()</li>
  <li>/s:Envelope/s:Body/element/ServerSettingInfo/ServerUrl</li>
  <li>/s:Envelope/s:Body/element/ServerSettingInfo/@ServerUrl</li>
  </ol>
  
  <p>NONE of the above XPath expression worked for me.</p>
  
  <p>XPath2 Extractor settings are as following :</p>
  
  <ol>
  <li>Apply to : Main Sample Only</li>
  <li>Name of created variable : ServerURL</li>
  <li>XPAth : //ServerUrl/text()</li>
  <li>Match No. 0</li>
  <li>Default Value : NotFound</li>
  <li>Namespace alias list : EMPTY</li>
  </ol>
  
  <p>Does anyone has any idea why XPath2 Extractor is not working??</p>
  
  <p>Is there any way to achieve this?</p>