Is send_resp() and put_resp_content_type() the canonical way to send a string as XML in Phoenix?
<p>In Phoenix, what's the canonical way of sending a string as an XML response? </p>

<p>I have the following code which works fine, but it seems like I should use render or similar? </p>

<pre><code>conn
|&gt; put_resp_content_type("text/xml")
|&gt; send_resp(200, some_string_with_xml)
</code></pre>

<p>Is there a better or more canonical way to do this? </p>