title: Body Expectation with XPATH not working on mockserver
body: <p>I am using MockServer since a short time and trying to create an expectation on the Request-Body. My Body is an XML and I am using XPath to match the Request, but I can not make it work.
  The Expectation I defined:</p>
  <pre><code>[
    {
      &quot;httpRequest&quot;: {
        &quot;method&quot;: &quot;POST&quot;,
        &quot;headers&quot;: { &quot;Content-Type&quot;: [ &quot;.*/xml&quot; ] },
        &quot;path&quot;: &quot;/apath&quot;,
        &quot;body&quot;:{
              &quot;type&quot; : &quot;XPATH&quot;,
              &quot;xpath&quot; : &quot;bookstore&quot;
          }
      },
      &quot;httpResponse&quot;: {
              &quot;statusCode&quot;: 200,
              &quot;headers&quot;: [
                  { &quot;name&quot;: &quot;Content-Type&quot;, &quot;values&quot;: [ &quot;text/xml&quot; ] }
              ],
              &quot;body&quot;: {
                  &quot;type&quot;: &quot;XML&quot;,
                  &quot;xml&quot;: &quot;&lt;RS state=\&quot;HAPPY DAYS!\&quot;/&gt;&quot;
              }
      }
    }
  ]
  </code></pre>
  <p>I tried several combinations I have been sending the simple XML from <a href="http://www.w3schools.com" rel="nofollow noreferrer">www.w3schools.com</a></p>
  <pre><code>&lt;bookstore&gt;
  &lt;book&gt;
    &lt;title lang=&quot;en&quot;&gt;Harry Potter&lt;/title&gt;
      &lt;price&gt;29.99&lt;/price&gt;
      &lt;/book&gt;
      &lt;book&gt;
        &lt;title lang=&quot;en&quot;&gt;Learning XML&lt;/title&gt;&lt;price&gt;39.95&lt;/price&gt;
  &lt;/book&gt;
  &lt;/bookstore&gt;
  </code></pre>
  <p>I tried matching on <code>&quot;xpath&quot; : &quot;bookstore&quot;</code>, on <code>&quot;xpath&quot; : &quot;/bookstore&quot;</code> and as in <a href="https://www.mock-server.com/mock_server/creating_expectations.html#button_match_request_by_binary_body" rel="nofollow noreferrer">https://www.mock-server.com/mock_server/creating_expectations.html#button_match_request_by_binary_body</a>
  <code>&quot;xpath&quot; : &quot;/bookstore/book[price&gt;30]/price&quot;</code>
  I always get the error &quot;XPATH did not match&quot;.</p>
  <p>Can anyone help?</p>