title: Postgres Data to XML
body: <p>Does anyone know any good methods for converting database entries into XML?</p>
  
  <p>I.e. if i have a table named "Users" with fields "first_name", "age", "last_name", I'd like to convert the table to:</p>
  
  <pre><code>&lt;Users&gt;
    &lt;first_name&gt;Papa&lt;/first_name&gt;
    &lt;age&gt;50&lt;/age&gt;
    &lt;last_name&gt;John&lt;/last_name&gt;
  &lt;/Users&gt;
  </code></pre>