title: How to display XML in HTML in PHP?
body: <p>I have a string with XML:</p>
  
  <pre><code>$string = 
  "
  &lt;shoes&gt;
      &lt;shoe&gt;
         &lt;shouename&gt;Shoue&lt;/shouename&gt;
      &lt;/shoe&gt;
  &lt;/shoes&gt;
  ";
  </code></pre>
  
  <p>And would like display it on my website like this:</p>
  
  <pre><code>This is XML string content:
  &lt;shoes&gt;
      &lt;shoe&gt;
         &lt;shouename&gt;Shoue&lt;/shouename&gt;
      &lt;/shoe&gt;
  &lt;/shoes&gt;
  </code></pre>
  
  <p>So I would like to do it:</p>
  
  <ul>
  <li>on site, not in textbox</li>
  <li>without external libraries, frameworks etc.</li>
  <li>formatted with proper new lines</li>
  <li>formatted with tabs</li>
  <li>without colors etc., only text</li>
  </ul>
  
  <p>So how to do it in plain and simple way?</p>