SyntaxFix
Write A Post
Hire A Developer
Questions
public static string FormatXml(string xml) { try { var doc = XDocument.Parse(xml); return doc.ToString(); } catch (Exception) { return xml; } }