Visual Studio Toolbox: Using LINQ to XML to Query Data on the Web

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
These days, Web sites are providing access to a large amount of data, everything from RSS feeds to pictures to movie titles and more. Often, all you need to do in an application is send an HTTP request to a Web site. The Web site sends the data back via XML, and the easiest way to work with that data is to use LINQ queries. In this episode, Robert shows you how to use LINQ to XML to make sense of the XML data a Web site sends you. He gives examples of working with an RSS feed, retrieving images from Flickr, querying for wineries and wines using Wine.com, and returning movies from NetFlix. Youll see basic queries, see how to retrieve data from elements and attributes, and see how to work with namespaces. Check out <a title="Adventures in DeveloperLand http://blogs.msdn.com/b/robertgreen/ Roberts blog for all the code he used in this episode. <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Feeds/RSS&WT.dl=0&WT.entryid=Entry:RSSView:daeb15bffe4242cbb7019f6a016e0c7a

View the full article
 
Back
Top