• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NewB to xml

 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
A. Wolf
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Digedy! I never thought a tutorial could teach me something without losing my nerves!
Thanks.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The dW tutorials are generally pretty good.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic