title: AvalonEdit XML Pretty Print
body: <p>I am using Avalon Editor in my project to display existing XML (read only)
  I would like to show it with the elements in separate lines and neatly indented, regardless of the formatting of the source XML.
  Example:</p>
  <pre><code>&lt;City Name=&quot;Paris&quot;&gt;&lt;Street Name=&quot;Rue du hoquet&quot;&gt;My House&lt;/Street&gt;&lt;/City&gt;
  </code></pre>
  <p>shall be shown as:</p>
  <pre><code>&lt;City Name=&quot;Paris&quot;&gt;
      &lt;Street Name=&quot;Rue du hoquet&quot;&gt;
          My House
      &lt;/Street&gt;
  &lt;/City&gt;
  </code></pre>
  <p>I know that there are many examples using .Net, but instead of reading and re-writing the XML before sending it to Avalon, it would be nicer if Avalon cound do the job by itself.
  I tried working with folding, but I suspect that folding requires separate lines to work with.
  Since I am using Avalon for displaying XML only, racting on the user's editing is not an issue.</p>