public static string HashtableToXml(Hashtable ht) { StringBuilder xml = new StringBuilder("<root>"); xml.Append(HashtableHelper.HashtableToNode(ht)); xml.Append("</root>"); return(xml.ToString()); }
public static string IListToXML(IList <Hashtable> datas) { StringBuilder xml = new StringBuilder("<root>"); foreach (Hashtable ht in datas) { xml.Append(HashtableHelper.HashtableToNode(ht)); } xml.Append("</root>"); return(xml.ToString()); }