Page 1 of 1

XML Filtering

Posted: Thu Jul 06, 2006 10:03 pm
by Kills On Site
Well when I reformatted my hard drive I lost about 100 songs that were not in my main music folder, they were in 2 other places that I know of. Since I used iTunes I just exported the library.xml in order to just load it back up and have everything in order. I still have the original library.xml, however it is over 400 pages long and I have no desire to use a ream of paper to print it and I don't have the patient to go through and copy each song. So my question then is there a way to extract the file locations from the xml document and get rid of everything else?

Posted: Fri Jul 07, 2006 2:11 am
by FragaGeddon
I'd just do a ctrl+a and select clear, then just point it to your music folder and let it import everything again.

Posted: Mon Jul 10, 2006 4:52 pm
by Kills On Site
No, the problem is the 100 or so songs that were in the other locations are gone, forever and I want to find what songs I lost by filtering the XML files to so I can see what songs were there, if possible.

Posted: Tue Jul 11, 2006 3:36 am
by FragaGeddon
Well I would still do what I suggested.
Then create a new XML file then use a file comaprisson tool to weed out the differences between the old XML file and the new one.
Just not sure if the program can read XML files.

Posted: Tue Jul 11, 2006 7:07 am
by Kills On Site
I see what you mean, a good idea, if a program exists that can compare the files. I can easily convert the xml into txt, if that helps.

Posted: Tue Jul 11, 2006 11:21 am
by Nightshade
Don't know if this handles XML or not, but it's a comparison tool:

http://www.scootersoftware.com/

Posted: Tue Jul 11, 2006 5:22 pm
by Kills On Site
Thanks to both of you. All I had to do was save the old and new libraries as .txt files, it might have worked with xml, but I knew txt would work. The new library file had already deleted all the songs that didn't exist, so that made it easier. Then I opened them in that Beyond Compare and it managed to seperate them beautifully and I found my lost songs, well the titles at least.

Posted: Tue Jul 11, 2006 6:39 pm
by FragaGeddon
I wasn't sure if iTunes would output as a text file.
Mine crashes when I open it, and so does Picasa. Not sure exactly what the problems are.

Posted: Tue Jul 11, 2006 6:54 pm
by Kills On Site
Well I just took the xml that it created, opened it in IE and saved as. So far of the songs that I lost, 69 were from my sister so I can get those back no problem and 15 were songs I got elsewhere, 12 or which are available on iTunes, however finding Bombshell by Powerman 5000 is hard as hell, it is one of three that aren't on iTunes.

Posted: Wed Jul 12, 2006 5:04 pm
by FragaGeddon
Kills On Site wrote:...........however finding Bombshell by Powerman 5000 is hard as hell, it is one of three that aren't on iTunes.
I just downloaded it, it's 192 KBPS.