'AvalonEdit XML Pretty Print
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:
<City Name="Paris"><Street Name="Rue du hoquet">My House</Street></City>
shall be shown as:
<City Name="Paris">
<Street Name="Rue du hoquet">
My House
</Street>
</City>
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
