XML Filtering

Locked
Kills On Site
Posts: 1741
Joined: Wed Jul 23, 2003 7:00 am

XML Filtering

Post 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?
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post 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.
Kills On Site
Posts: 1741
Joined: Wed Jul 23, 2003 7:00 am

Post 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.
[size=92][color=#0000FF]Hugh Hefner for President[/color][/size]
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post 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.
Kills On Site
Posts: 1741
Joined: Wed Jul 23, 2003 7:00 am

Post 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.
[size=92][color=#0000FF]Hugh Hefner for President[/color][/size]
Nightshade
Posts: 17020
Joined: Fri Dec 01, 2000 8:00 am

Post by Nightshade »

Don't know if this handles XML or not, but it's a comparison tool:

http://www.scootersoftware.com/
Kills On Site
Posts: 1741
Joined: Wed Jul 23, 2003 7:00 am

Post 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.
[size=92][color=#0000FF]Hugh Hefner for President[/color][/size]
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post 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.
Kills On Site
Posts: 1741
Joined: Wed Jul 23, 2003 7:00 am

Post 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.
[size=92][color=#0000FF]Hugh Hefner for President[/color][/size]
User avatar
FragaGeddon
Posts: 3229
Joined: Sun Sep 17, 2000 7:00 am

Post 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.
Locked