title: What's a simple way in java to evaluate an xpath on a string and return a result string
body: <p>A simple answer needed to a simple question.</p>
  
  <p>For example:</p>
  
  <pre><code>String xml = "&lt;car&gt;&lt;manufacturer&gt;toyota&lt;/manufacturer&gt;&lt;/car&gt;";
  String xpath = "/car/manufacturer";
  assertEquals("toyota",evaluate(xml, xpath));
  </code></pre>
  
  <p>How can I write the evaluate method in simple and readable way that will work for any given well-formed xml and xpath.</p>
  
  <p>Obviously there are loads of ways this can be achieved but the majority seem very verbose.</p>
  
  <p>Any simple ways I'm missing/libraries that can achieve this?</p>
  
  <p>For cases where multiple nodes are returned I just want the string representation of this.</p>