Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="element"></param>
        protected new void Parse(XElement element)
        {
            var enclosure = element.ElementByNamespace("enclosure");

            if (enclosure != null)
            {
                Enclosure = new RssEnclosure(enclosure);
            }

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

            if (source != null)
            {
                Source = new RssSource(source);
            }

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

            if (category != null)
            {
                Category = new RssCategory(category);
            }
        }
Exemple #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="element"></param>
        protected new void Parse(XElement element)
        {
            var enclosure = element.ElementByNamespace("enclosure");
            if (enclosure != null)
            {
                Enclosure = new RssEnclosure(enclosure);
            }

            var source = element.ElementByNamespace("source");
            if (source != null)
            {
                Source = new RssSource(source);
            }

            var category = element.ElementByNamespace("category");
            if (category != null)
            {
                Category = new RssCategory(category);
            }
        }