/* public static string rss_test_0(string _url, string _xpath, int _qty, string _categories, string _colleges, string _tags, string _start, string _end)
 {
     LocalItemsCat xml = new LocalItemsCat(_url, _xpath, _categories, _colleges, _tags, _start, _end);
     string o = "<ul class=\"rss_hidelist\">";
     xml.items.Take(_qty).ToList().ForEach(x => { o += x.ToEtsuRssItem().ToListSample0(); });
     o += "</ul>";
     return o;
 }*/
 public static string eventsList(string _url,string _xpath)
 {
     XmlItems xml = new XmlItems(_url,_xpath);
     string r = "<ul>";
     xml.items.ForEach(x => { BedeworkXmlEvent item = new BedeworkXmlEvent(x); r += item.ToListItemWithLink();});
     r += "</ul>";
     return r;
 }
예제 #2
0
        /* public static string rss_test_0(string _url, string _xpath, int _qty, string _categories, string _colleges, string _tags, string _start, string _end)
         * {
         *   LocalItemsCat xml = new LocalItemsCat(_url, _xpath, _categories, _colleges, _tags, _start, _end);
         *   string o = "<ul class=\"rss_hidelist\">";
         *   xml.items.Take(_qty).ToList().ForEach(x => { o += x.ToEtsuRssItem().ToListSample0(); });
         *   o += "</ul>";
         *   return o;
         * }*/

        public static string eventsList(string _url, string _xpath)
        {
            XmlItems xml = new XmlItems(_url, _xpath);
            string   r   = "<ul>";

            xml.items.ForEach(x => { BedeworkXmlEvent item = new BedeworkXmlEvent(x); r += item.ToListItemWithLink(); });
            r += "</ul>";
            return(r);
        }