RssToolkit.Opml.OpmlDocument.Load C# (CSharp) Method

Load() public static method

Loads from URL.
public static Load ( System url ) : OpmlDocument
url System The URL.
return OpmlDocument
        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);
        }

Same methods

OpmlDocument::Load ( string xml ) : OpmlDocument
OpmlDocument