How do I display formatted XML in a SSRS Report?
问题 I have a field in my dataset that contains an unformatted XML string, for example: <root><element><subelement>value</subelement></element></root> How do I "prettify" it and display it within a Tablix control? Like this: <root> <element> <subelement>value</subelement> </element> </root> 回答1: This can be achieved by using embedded code in the report and using System.Xml.XmlTextWriter with XmlTextWriterSettings.Indent = true Open the Report Properties dialog and paste the following function in