I have a string in a ASP.NET MVC details page with the value of
<this><is sample = "attribute"><xml><power>!!!</power></xml><oh><yeah></yeah></oh></is></this>.
I want it to display as follows:
<this>
<is sample = "attribute">
<xml>
<power> !!! </power>
</xml>
<oh>
<yeah>
</yeah>
<oh>
</is>
</this>
Things I have tried:
1: How to Display Formatted XML - best answer and richards answer
2: xmlwriter.writeraw();
3: basic linq-to-xml (i'm not very good with this)
EDIT: I am displaying the string as follows and was wondering if this may have something to do with it:
<%: *formatted string goes here* %>