Exemple #1
0
        public static string HashtableToXml(Hashtable ht)
        {
            StringBuilder xml = new StringBuilder("<root>");

            xml.Append(HashtableHelper.HashtableToNode(ht));
            xml.Append("</root>");
            return(xml.ToString());
        }
Exemple #2
0
        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());
        }