title: How to get Play! Framework to serve a XML response
body: <p>Somehow I can't figure out how to get Play! to serve an XML response. And I don't understand the documentation either (which you can find <a href="http://www.playframework.com/documentation/2.2.x/JavaXmlRequests" rel="nofollow noreferrer">here</a>). </p>
  
  <p>My goal is to create a sitemap, so the response should be a <code>Content-Type: application/xml;</code></p>
  
  <p>How would you alter the following controller to serve that Content-Type? </p>
  
  <pre><code>public static Result sitemap() {
      return ok("&lt;message \"status\"=\"OK\"&gt;Hello Paul&lt;/message&gt;");
  }
  </code></pre>