Offline search in XML data for a release?

May 25, 2014 at 2:52 PM
I have not yet found an easy way to search for a specific release in the XML data dump files (without MySQL and completely offline).

Could you please provide a code example for such a job?
May 25, 2014 at 7:06 PM
Edited May 25, 2014 at 7:06 PM
If i'm not mistaken you can do this
ArtistReader2 reader = new ArtistReader2("discogs_20110107_artists.xml"); // Make sure to supply the correct filename here.
foreach (Artist artist in reader.Enumerate()) {
    // Process artist
If you have the the file in your computer... just point to it...
But again I'm not sure, because I did not yet reached the xml reader I I'm working on the profile API's and OAuth

But if that does not work I will look into it
May 25, 2014 at 7:15 PM
Edited May 25, 2014 at 7:19 PM
You are right, that would be one solution to loop through all the records. But in the worst case, we have to wait until the very last record finally matches.

I'm looking for something like a more direct search feature (LINQ?). Maybe this is impossible with XML raw data?
May 25, 2014 at 7:16 PM
I'm not sure if that's possible... But I'll look into it