예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        protected new void Parse(XElement element)
        {
            this.ID      = element.CastElementToString("id");
            this.PubDate = RssItem.ParseDate(element.CastElementToString("published"));
            this.Date    = RssItem.ParseDate(element.CastElementToString("updated"));
            var author = element.ElementByNamespace("author");

            foreach (var name in author.ElementsByNamespace("name"))
            {
                this.Authors.Add(name.Value);
            }
            this.Link        = element.ElementByNamespace("link").CastAttributeToString("href");
            this.Summary     = element.CastElementToString("summary");
            this.Description = element.CastElementToString("content");
        }
예제 #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="element"></param>
 /// <returns></returns>
 protected new void Parse(XElement element)
 {
     About       = element.CastAttributeToString("rdf", "about");
     Description = element.CastElementToString("description");
     this.Date   = RssItem.ParseDate(element.CastElementToString("dc", "date"));
 }