I'm building an application for those Xbox 360 achievements lovers. Right now I'm pretty much copying the Title, Description and Guide to a XML file (Which I have in my Dropbox). Then I retrieve this info to 3 text blocks and an image control.
Process:
Step 1:
Find the title: http://www.xbox360achievements.org/game/call-of-duty-modern-warfare-3/guide/
Step 2:
Copy & Paste all info to XML: https://dl.dropbox.com/u/27136243/AchivementHunters/XML/Achivements%26Guides%20-%20Example.xml
Step 3:
Download XML and read/display data
XDocument dataFeed = XDocument.Parse(e.Result);
try
{
if (NavigationContext.QueryString.TryGetValue("gameName", out gameName))
{
AchivementsListBox.ItemsSource = from query in dataFeed.Descendants(gameName)
select new NewGamesClass
{
TitleCode = (string)query.Element("TitleCode"),
GameTitle = (string)query.Element("Title"),
GameDescription = (string)query.Element("Description"),
GameGuide = (string)query.Element("Guide"),
GameImage = (string)query.Element("Image"),
GameVideoLink = (string)query.Element("VideoLink")
};
}
}
catch
{
MessageBox.Show("Sorry, an error has ocurr while locating the achievement list.");
}
Output:
Now, I want to make my life easier by not finding, copying, and paste all the data manually. Is there anyway I can just access all this information straight from the website and display it in my app. I'm still in the process of learning programming, so I have no idea what to research to accomplish this. Can someone please direct me towards the right way plus give me some examples. thanks.