public bool ValidateSiteFields(Core.Framework.Provisioning.Model.FieldCollection sElements, Core.Framework.Provisioning.Model.FieldCollection tElements, TokenParser sParser, TokenParser tParser)
        {
            List <Localization> sColl = LoadFields(sElements);
            List <Localization> tColl = LoadFields(tElements);

            if (sColl.Count > 0)
            {
                if (!Validatelocalization(sColl, tColl, sParser, tParser))
                {
                    return(false);
                }
            }

            return(true);
        }
        private List <Localization> LoadFields(Core.Framework.Provisioning.Model.FieldCollection coll)
        {
            string attribute1       = "DisplayName";
            string attribute2       = "Description";
            string key              = "ID";
            List <Localization> loc = new List <Localization>();

            foreach (Core.Framework.Provisioning.Model.Field item in coll)
            {
                XElement element      = XElement.Parse(item.SchemaXml);
                string   sTokenValue1 = GetPropertyValue(attribute1, element);
                string   sTokenValue2 = GetPropertyValue(attribute2, element);
                string   sKey         = GetPropertyValue(key, element);

                loc.Add(new Localization(sKey, sTokenValue1, sTokenValue2));
            }

            return(loc);
        }