Hi,
You can use Smile's xml tools osax to parse the xml also. Apple added xml parsing to System Events also. If you need help with the xml tools, write back. Do you have a iTunes Music Library.xml file in the iTunes folder? I don't know because I'm using Jaguar 10.2.8.
It might be faster using vanilla AppleScript though to parse the file, but it takes more work.
gl,