title: Wiremock and XPath attribute testing
body: <p>Assume I have an XML request containing the following snippet</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;foo bar="12356"/&gt;
  </code></pre>
  
  <p>My service sends this snippet to another services to do things. That service expects a <code>foo</code> node with <code>bar</code> attribute and no text node. The following expression matches that node just fine</p>
  
  <pre class="lang-xml prettyprint-override"><code>//foo[@bar='12356']
  </code></pre>
  
  <p>The problem is that Wiremock expects a text node to be present in matched <code>foo</code> nodes, as a result, it considers the previous expression to NOT match. </p>
  
  <p>Using wiremock how do you test XML for matching attributes instead of text nodes?</p>