public static String elementToString(XmlElement e) { try { return(XmlParseHelpers.ToStream(e)); } catch (Exception uce) { Console.WriteLine(uce.StackTrace); return(""); } }
public static MemoryStream getStream(XmlDocument doc) { try { return(XmlParseHelpers.ToStream(doc)); } catch (Exception e) { Console.WriteLine(e.StackTrace); return(null); } }