public static string TransformXml(XmlDocument doc)
        {
            StringBuilder sb  = new StringBuilder();
            XmlWriter     xml = XmlWriter.Create(sb);

            XslCompiledTransform xsl = new XslCompiledTransform();

            // Load the XSL from the embedded resources
            xsl.Load(XmlReader.Create(InspectorUtilities.GetEmbeddedResourceAsStream("EasInspector", "Embedded.XmlTransform.xslt")));

            // Write the XSLT transformed document
            xsl.Transform(doc, null, xml);

            return(sb.ToString());
        }
 public static string FriendlyException(string description, string exception)
 {
     return(string.Format(@"{0}<br/><br/><div class=""level1""><code>{1}</code></div>", description, InspectorUtilities.ExceptionCleanup(exception)));
 }
        public static void LogDebug(string logString)
        {
#if (DEBUG)
            InspectorUtilities.Log(logString);
#endif
        }