Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-25 Thread Jens Alfke
On Aug 25, 2011, at 10:37 PM, David Dengg wrote: > I checked the file by hand and found one corrupt song. The "Name" and > "Location" were just garbage strings. I deleted the entry and its fine now. Oh, interesting — sounds like iTunes isn’t properly escaping some of the characters in the nam

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-25 Thread David Dengg
Thanks I tried that but NSPropertyListSerialization just says the same thing: its a malformed plist. I checked the file by hand and found one corrupt song. The "Name" and "Location" were just garbage strings. I deleted the entry and its fine now. I send the customer the file without the malforme

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-25 Thread Manfred Schwind
>> Maybe the file is corrupt. In most cases it can be solved by deleting the >> XML file and then making a slight change in iTunes (e.g. rename a song). The >> file is then written again soon and should be fine. > > Yeah, it’s a strange problem because this file gets rewritten from scratch > al

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-25 Thread Jens Alfke
On Aug 25, 2011, at 2:18 PM, Manfred Schwind wrote: > Maybe the file is corrupt. In most cases it can be solved by deleting the XML > file and then making a slight change in iTunes (e.g. rename a song). The file > is then written again soon and should be fine. Yeah, it’s a strange problem beca

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-25 Thread Manfred Schwind
> one of my customers is reporting that my app does not find the "iTunes Music > Library.xml" file. Its there and its filled with data. His iTunes runs fine. > He send me the file and to my eyes it looks fine. The way i load it is with: > > NSDictionary * xmldict = [NSDictionary > dictionaryWit

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-24 Thread Jens Alfke
On Aug 24, 2011, at 4:02 AM, David Dengg wrote: > NSDictionary * xmldict = [NSDictionary > dictionaryWithContentsOfFile:libraryXML]; Try loading it using NSPropertyListSerialization, which will return an NSError telling you what went wrong. —Jens smime.p7s Description: S/MIME cryptographic s