Example #1
0
        private static IEnumerable <AtomLink> get_links(System.Xml.XmlNode parent, System.Xml.XmlNamespaceManager nsmgr)
        {
            var link_nodes = parent.SelectNodes("atom:link", nsmgr).AsEnumerable().Cast <System.Xml.XmlElement>();

            foreach (var linknode in link_nodes)
            {
                var alink = new AtomLink();
                alink.Type = linknode.GetAttribute("type");
                alink.Rel  = linknode.GetAttribute("rel");
                alink.Href = linknode.GetAttribute("href");
                yield return(alink);
            }
        }
Example #2
0
        private static IEnumerable<AtomLink> get_links( System.Xml.XmlNode parent , System.Xml.XmlNamespaceManager nsmgr)
        {
            var link_nodes = parent.SelectNodes("atom:link",nsmgr).AsEnumerable().Cast<System.Xml.XmlElement>();
            foreach (var linknode in link_nodes)
            {
                var alink = new AtomLink();
                alink.Type = linknode.GetAttribute("type");
                alink.Rel = linknode.GetAttribute("rel");
                alink.Href= linknode.GetAttribute("href");
                yield return alink;
            }

            
        }