This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I'd really like to go through my iTunes music library.xml file and find all the occurences of <key>Name</key><string>My music song</string> <key>Location</key><string>file://localhost/Users...</string> so i can add it to a list in my java application. Could someone give me a simple solution? or something to get started? thanks
You might want to start by reading Understanding SAX and Understanding DOM from IBM developerWorks. That should help you decide which one of the approaches you should use for parsing your XML. When you get to actually writing code, the code snippets in the Java Developer's Almanac are very helpful.