/* 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);
        }
예제 #3
0
        public static string newsList(string _url, string _xpath, int _qty)
        {
            XmlItems xml = new XmlItems(_url, _xpath);
            string   o   = "<ul>";

            //xml.items.Take(_qty).ToList().ForEach(x => { YahooRssItem item = new YahooRssItem(x); o += item.ToListItemWithLink(); });
            xml.items.Take(_qty).ToList().ForEach(x => { o += x.ToYahooRssItem().ToListItemWithLink(); });
            o += "</ul>";
            return(o);
        }
 public static string newsList(string _url, string _xpath, int _qty)
 {
     XmlItems xml = new XmlItems(_url,_xpath);
     string o = "<ul>";
     //xml.items.Take(_qty).ToList().ForEach(x => { YahooRssItem item = new YahooRssItem(x); o += item.ToListItemWithLink(); });
     xml.items.Take(_qty).ToList().ForEach(x => { o += x.ToYahooRssItem().ToListItemWithLink(); });
     o += "</ul>";
     return o;
 }