title: How to display php output as xml
body: <p>I have this simple php that outputs a list of all the png files in a directory.  Is there a way to take this list and make it xml?</p>
  
  <pre><code>&lt;?php
  foreach (glob("*.png") as $filename) {
      echo "$filename " ;
  }
  ?&gt;
  </code></pre>