title: Using twig templates to display XML
body: <p>I'd like to use twig templates to display XML data, and I'm not really sure if I'm going about it the best way.</p>
  
  <p>I'm currently generating an xml DOMDocument in PHP and passing that to the template, but at that point the only thing I can think to do go through each document in a loop recreating the tags within the template.</p>
  
  <p>Is there a better way to go about doing this?</p>
  
  <p>Also, how should I set the content type of the page?</p>
  
  <p>I'm not using any kind of framework.</p>