LINQ in Action roller

Parsing iTunes Library xml in Linq

Hey guys, I found a VB 9.0 sample on using Linq to read the iTunes XML library and I am trying to convert it to C# - http://blogs.msdn.com/xmlteam/archive/2006/12/18/converting-simple-itunes-playlists-to-zune-playlists-using-vb-9-0.aspx VB Code Code Snippet Dim itunesPlaylists = From key In itunesLib... key > _ Where key.Value = "Playlist ID" _ Select key.ElementsBeforeSelf( "string" ).Value C# so far.. Code Snippet IEnumerable string > artists = from a in itunesLib.Descendants( "dict" ).Descendants( Read More...
Published Saturday, January 24, 2009 10:27 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication