public static List<GoogleProductFeedConfigurations> GetSitecoreSites()
        {
            List<GoogleProductFeedConfigurations> result = new List<GoogleProductFeedConfigurations>();
            var test = Factory.GetConfigNodes("GoogleProductFeed/SitecorePaths/Site");
            foreach (XmlNode node in Factory.GetConfigNodes("GoogleProductFeed/SitecorePaths/Site"))
            {
                if (XmlUtil.GetAttribute("name", node) != null)
                {
                    var googleProductFeedConfigurations = new GoogleProductFeedConfigurations();
                    googleProductFeedConfigurations.SiteName = XmlUtil.GetAttribute("name", node);
                    googleProductFeedConfigurations.UrlPrefix = XmlUtil.GetAttribute("urlPrefix", node);
                    googleProductFeedConfigurations.RootItemPath = XmlUtil.GetAttribute("rootItemPath", node);
                    googleProductFeedConfigurations.ConfigurationPath = node.ChildNodes[0].Attributes["value"].Value;
                    googleProductFeedConfigurations.XMLPath = node.ChildNodes[1].Attributes["value"].Value; //XmlUtil.GetAttribute("XMLPath", node.ChildNodes[0]);

                    result.Add(googleProductFeedConfigurations);
                }
            }

            return result;
        }
        public static List <GoogleProductFeedConfigurations> GetSitecoreSites()
        {
            List <GoogleProductFeedConfigurations> result = new List <GoogleProductFeedConfigurations>();
            var test = Factory.GetConfigNodes("GoogleProductFeed/SitecorePaths/Site");

            foreach (XmlNode node in Factory.GetConfigNodes("GoogleProductFeed/SitecorePaths/Site"))
            {
                if (XmlUtil.GetAttribute("name", node) != null)
                {
                    var googleProductFeedConfigurations = new GoogleProductFeedConfigurations();
                    googleProductFeedConfigurations.SiteName          = XmlUtil.GetAttribute("name", node);
                    googleProductFeedConfigurations.UrlPrefix         = XmlUtil.GetAttribute("urlPrefix", node);
                    googleProductFeedConfigurations.RootItemPath      = XmlUtil.GetAttribute("rootItemPath", node);
                    googleProductFeedConfigurations.ConfigurationPath = node.ChildNodes[0].Attributes["value"].Value;
                    googleProductFeedConfigurations.XMLPath           = node.ChildNodes[1].Attributes["value"].Value; //XmlUtil.GetAttribute("XMLPath", node.ChildNodes[0]);


                    result.Add(googleProductFeedConfigurations);
                }
            }

            return(result);
        }