I have a small WinForm application that's a basic wallpaper scraper. It has the ability for the user to 'blacklist' a wallpaper so it's never used again. When blacklisted, a wallpapers URL, title and ID are added into an XML file that's in the following format:
<?xml version="1.0" encoding="utf-8"?>
<!--This file stores a list of any wallpapers you blacklist.-->
<Title>Gran Via Madrid Wallpaper [1920x1080]</Title>
<Title>The Golden wallpaper HD [1920*1080]</Title>
string url = "http://example.url/image.jpg"
XDocument xml = XDocument.Load("Blacklisted.xml");
var list = xml.Root.Elements("URL").Select(element => element.Value).ToList();
updateStatus("Wallpaper is blacklisted.");
It doesn't look like your list is being populated correctly. Try using the Descendants method from you XDocument object.
var list = xml.Descendants("URL").Select(x=> x.Value).ToList();