2using System.Collections.Generic;
20 throw new ArgumentNullException(nameof(Xml));
22 List<RssWarning>
Warnings =
new List<RssWarning>();
24 foreach (XmlNode N
in Xml.ChildNodes)
26 if (!(N is XmlElement E))
29 if (E.NamespaceURI == Xml.NamespaceURI)
34 if (Uri.TryCreate(BaseUri, E.InnerText, out Uri
Url))
41 this.Title = E.InnerText;
45 if (Uri.TryCreate(BaseUri, E.InnerText, out Uri
Link))
52 if (
int.TryParse(E.InnerText, out
int Width) &&
Width > 0 &&
Width <= 144)
66 this.Description = E.InnerText;
89 public Uri
Url {
get; } =
null;
102 public Uri
Link {
get; } =
null;