title: how to convert a parsed data into an xml format
body: <p>I want to parse a HTML content (web site) using the "<strong>simple html dom parser</strong>" using this code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
      &lt;title&gt;Parsing&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Démonstration parsing &lt;/h1&gt;
      &lt;?php
      require_once 'simple_html_dom.php';
      $html = new simple_html_dom();
      $html-&gt;load_file('http://grafikart.fr/blog/');
      // echo $html-&gt;find('img',0)-&gt;getAttribute('src');
      /*foreach ($html-&gt;find('img') as $img) {
          echo $img-&gt;src . '&lt;br/&gt;';
      }*/
   foreach ($html-&gt;find('.posts') as $post){
       echo 'ARTICLE : '.$post-&gt;find('posts-short&gt;p',0)-&gt;plaintext.'&lt;br/&gt;';
       echo 'Image de l\'article: '.$post-&gt;find('img',0)-&gt;src.'&lt;br/&gt;';         
   }
      ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Everything works fine, but I would like to obtain my parsed data into an xml format. Anyone have an idea?
  Thank you!</p>