Exemplo n.º 1
0
        public static string HashtableToXml(Hashtable ht)
        {
            StringBuilder xml = new StringBuilder("<root>");

            xml.Append(HashtableHelper.HashtableToNode(ht));
            xml.Append("</root>");
            return(xml.ToString());
        }
Exemplo n.º 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());
        }