I have my XML as a string and need to display it in a div I have searched all the ways to format an XML, but it doesn't work as I am finally binding my contents to a div.
Following is what I am using in my asp.net applicaion c# code.
request = //my xml string
XDocument doc = XDocument.Parse(request);
divLogResults.InnerText = doc.ToString()
I have tried all the ways listed here as well
What is the simplest way to get indented XML with line breaks from XmlDocument?
So this isn't a duplicate. How can I do this in a simple way ?