public static OpmlDocument Load(System.Uri url)
{
if (url == null)
{
throw new ArgumentNullException("url");
}
string opmlXml = string.Empty;
using (Stream opmlStream = DownloadManager.GetFeed(url.ToString()))
{
using (XmlTextReader reader = new XmlTextReader(opmlStream))
{
while (reader.Read())
{
if (reader.NodeType == XmlNodeType.Element &&
reader.LocalName.Equals("opml", StringComparison.OrdinalIgnoreCase))
{
opmlXml = reader.ReadOuterXml();
break;
}
}
}
}
return Load(opmlXml);
}