ApprovalUtilities.Xml.XmlUtils.FormatXml C# (CSharp) Method

FormatXml() public static method

public static FormatXml ( string xml, bool safe ) : string
xml string
safe bool
return string
		public static string FormatXml(string xml, bool safe)
		{
			try
			{
				return XElement.Parse(xml).ToString();
			}
			catch
			{
				if (safe)
				{
					return xml;
				}
				throw;
			}
		}