Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="element"></param>
        /// <returns></returns>
        protected new void Parse(XElement element)
        {
            Author   = element.CastElementToString("author");
            Comments = element.CastElementToString("comments");

            var guid = element.ElementByNamespace("guid");

            if (guid != null)
            {
                Guid = new RssGuid(guid);
            }

            this.PubDate = RssItem.ParsePubDate(element.CastElementToString("pubDate"));
        }
Ejemplo n.º 2
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");
        }
Ejemplo n.º 3
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"));
 }