private List <string> GetArray(AdlibApi.AdlibRecord nodeFromAdlibRecord, string getNodeFromAdlibRecord, string url)
        {
            var list = new List <string>();
            IEnumerable <XmlNode> xmlNodes = nodeFromAdlibRecord.GetNodes().Where(r => r.Name == getNodeFromAdlibRecord);

            foreach (var node in xmlNodes)
            {
                var i = node.InnerText.ToLower();
                if ((i.Contains("jpg") || i.Contains("png") || i.Contains("jpeg") || i.Contains("tiff") || i.Contains("tif")))
                {
                    list.Add(url + node.InnerText);
                }
            }
            return(list);
        }
        private string GetNodeFromAdlibRecord(AdlibApi.AdlibRecord record, string mapping)
        {
            var node = record.GetNodes().FirstOrDefault(r => r.Name == mapping);

            return(node == null ? "" : node.InnerText);
        }