My winform application communicates with the web service. For some requirement, I need to present the web service response in the XML format in the winform application.
XDocument xDocument = XDocument.Parse(xmlText);
myRichTextBox.Text = xDocument.ToString();//ToString will format xml string with indent
//as XDocument class overrides ToString and return xml with indent