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

FormatXmlWithOrderedAttributes() public static method

public static FormatXmlWithOrderedAttributes ( string xml ) : string
xml string
return string
	    public static string FormatXmlWithOrderedAttributes(string xml)
	    {
	        string text;
	        var xElement = XElement.Parse(xml);
	        SortAttributes(xElement);

	        text = xElement.ToString();
	        return text;
	    }