Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-21-2009, 10:49 PM   #1 (permalink)
SwissArmyKnife
 
Join Date: Mar 2009
Location: Northern VA
Posts: 4
Default iTunes library xml file

Hey, whoever replies to this question, thanks in advance.

I'm trying to write an app that will open and parse the iPhone's iTunes library xml file to get tags like artist, album, etc. Problem is, I don't know where the library xml file should be located. I don't have access to an iPhone, and even if I did, I get the feeling that end users can't really navigate through the filesystem to find things.

Does anyone know where the library xml file should be on the iPhone?

Another question: Can anyone comment if DOM or SAX would be better for parsing the iTunes library? Has anyone used Objective-XML?

Also, the app will be using the artist and album tags to eventually play the associated media files. I've seen a disturbing thread that makes me think that this feature may be impossible because of an "iTunes monopoly" on the media files themselves. Any comments?

Finally, I'm not sure that I really care enough about all of these questions to do it all myself. I'm really new to iPhone development, and I want to see this app done very quickly. Meanwhile, I'm concentrating on another portion of the app that would work well as a licensable package. Can anyone recommend an independent iPhone development shop that would be flexible enough to take a TBD% of the sales of the product for a TBD time, and not ask for money up front? My partner and I don't have any cash to spend right now.
Hopper is offline   Reply With Quote
Old 03-22-2009, 12:38 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Atlanta
Posts: 411
Default

I don't think you'll be able to parse the library via an iPhone application. It is what they call "sandboxed" to its own folder and can only access data external to that directory via the API's. I believe iPhone OS 3.0 may allow more access to the music library, but I'm not sure to what extent.

Try the Jobs forum for devs-for-hire.
funkytaco is offline   Reply With Quote
Old 03-22-2009, 11:48 AM   #3 (permalink)
SwissArmyKnife
 
Join Date: Mar 2009
Location: Northern VA
Posts: 4
Default

Hmm - about the "sandbox" - very useful info. I had suspected that I might need to make some portion of the app work on the desktop computer in order to parse the iTunes library file (parse at sync time to avoid doing this on the iPhone itself = improved performance), or maybe simply copy the whole library file over to my app's working directory on the iPhone. But even if there is such a desktop app, its output file would have to be part of my iPhone app package (NSBundle), which means that it would have to be compiled on the fly(?) ... no way. This process was going to be clumsy even if it worked, which I now know it probably won't.

Do you think that sandbox issue also applies to the media files themselves? If so, it would eliminate all doubt about the feasibility of my project.

Thanks for the suggestion about the jobs forum. Although I wonder if I'll need to anymore!

Funkytaco - I owe you one. If you're ever in northern VA, let me know.
Hopper is offline   Reply With Quote
Reply

Bookmarks

Tags
itunes, parsing, xml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 252
16 members and 236 guests
2WeeksToGo, ADY, BrianSlick, dacapo, Dani77, Dattee, Duncan C, headkaze, jemicha, kapps11, mer10, mgon987, sneaky, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,743
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0