public XElement CreateCatalogElement(Entity channel) { return(new XElement("Catalog", new XAttribute("name", _mappingHelper.GetNameForEntity(channel, 100)), new XAttribute("lastmodified", channel.LastModified.ToString("O")), new XAttribute("startDate", _pimFieldAdapter.GetStartDate(channel)), new XAttribute("endDate", _pimFieldAdapter.GetEndDate(channel)), new XAttribute("defaultCurrency", _config.ChannelDefaultCurrency), new XAttribute("weightBase", _config.ChannelDefaultWeightBase), new XAttribute("defaultLanguage", _config.ChannelDefaultLanguage.Name.ToLower()), new XAttribute("sortOrder", 0), new XAttribute("isActive", "True"), new XAttribute("languages", string.Join(",", _pimFieldAdapter.CultureInfosToStringArray(_config.LanguageMapping.Keys.ToArray()))))); }