• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Question in regards to iTunes XML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question in regards to iTunes XML


  • Subject: Re: Question in regards to iTunes XML
  • From: "Hank Heijink (Mailinglists)" <email@hidden>
  • Date: Wed, 22 Sep 2010 14:45:58 -0400

On Sep 22, 2010, at 2:38 PM, Eric E. Dolecki wrote:

> I've been asked to take the iTunes XML file from a few people and provide a
> picker to choose which one to use. That's the easy part. So I have a few of
> the XML files and slapped them on a server, etc. however each one averages
> about 5MB in size. I am not linking to actual media obviously, but I'd have
> to think 5MB XML files are pretty big to be loading and parsing on an
> iPhone.

If your users don't have unlimited data plans, they might want to think twice about allowing that download over WWAN, but 5MB is not undoable. It doesn't take hours to download.

> Should I let this person know that this just isn't feasible on an iPhone? If
> it's doable, should I use something other than NSXMLParser?

Absolutely. NSXMLParser uses about twice the memory and time of libxml on small files, and doesn't allow you to parse the data in chunks: you'd have to download the entire 5MB before you can start parsing. Look at XMLPerformance sample code to get started with libxml's push parser.

Good luck,
Hank

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Question in regards to iTunes XML
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >Question in regards to iTunes XML (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: NSOperation and threadDictionary
  • Next by Date: Re: Question in regards to iTunes XML
  • Previous by thread: Question in regards to iTunes XML
  • Next by thread: Re: Question in regards to iTunes XML
  • Index(es):
    • Date
    • Thread