title: how to display human readable xml in an asp.net mvc view page
body: <p>I have a string in a ASP.NET MVC details page with the value of </p>
  
  <pre><code>&lt;this&gt;&lt;is sample = "attribute"&gt;&lt;xml&gt;&lt;power&gt;!!!&lt;/power&gt;&lt;/xml&gt;&lt;oh&gt;&lt;yeah&gt;&lt;/yeah&gt;&lt;/oh&gt;&lt;/is&gt;&lt;/this&gt;.
  </code></pre>
  
  <p>I want it to display as follows:</p>
  
  <pre><code>&lt;this&gt;
    &lt;is sample = "attribute"&gt;
      &lt;xml&gt;
         &lt;power&gt; !!! &lt;/power&gt;
      &lt;/xml&gt;
      &lt;oh&gt;
         &lt;yeah&gt;
         &lt;/yeah&gt;
      &lt;oh&gt;
    &lt;/is&gt;
  &lt;/this&gt;
  </code></pre>
  
  <p>Things I have tried:</p>
  
  <p>1: <a href="https://stackoverflow.com/questions/2149051/how-to-display-formatted-xml">How to Display Formatted XML</a> - best answer and richards answer</p>
  
  <p>2: xmlwriter.writeraw();</p>
  
  <p>3: basic linq-to-xml (i'm not very good with this)</p>
  
  <p>EDIT: I am displaying the string as follows and was wondering if this may have something to do with it:</p>
  
  <pre><code>&lt;%: *formatted string goes here* %&gt;
  </code></pre>