DIY digital photo fun for Mac OS X + Fun and Learning for iPhone / iPod Touch!
Problems parsing AlbumData.xml Print E-mail
User Rating: / 2
PoorBest 
Monday, 03 November 2008

iPhoto tracks all of your photos using it's own database, but it also writes a file called AlbumData.xml to share the iPhoto data with other iLife programs like iTunes, iMovie, iDVD, and also for 24x7digital's PhotoCopy.  PhotoCopy must be able to read this file to gather information about your iPhoto Library.

AlbumData.xml is written out by iPhoto when you make changes to your iPhoto Library but it sometimes takes a while before the file is updated to match your library exactly.  Furthermore, there are times when iPhoto will allow some corrupt data to get written out to AlbumData.xml which can cause third-party programs some difficulties in reading and parsing the file.

PhotoCopy may generate an error such as: "Could not parse the AlbumData.xml file. Error: XML parser error: Encountered unexpected character k on line 74371. Old-style plist parser error: Malformed data byte" if it detects a problem with your AlbumData.xml file.

To fix errors in your AlbumData.xml, it is important to identify the root cause of the problem in your iPhoto Library, and to coax iPhoto into repairing it's internal representation of its data, and have iPhoto write out a corrected version of the AlbumData.xml file.  It is also important that the full path to the location of the AlbumData.xml file does not have any odd characters in the folder names such as the ampersand character or excessive slashes or backslashes.

A common problem in AlbumData.xml is the presence of invisible "null" characters.  Null characters can be inadvertently introduced into your iPhoto Library when photos with meta-data stored in their EXIF data contain null characters and are imported directly into your iPhoto database.  You may need to visit each photo in iPhoto which has problematic meta-data and get rid of the problematic keywords, and re-enter the keywords using the iPhoto user interface.

To find the root cause of a bad AlbumData.xml file, it is necessary to open the file using a text editor which can go to a particular line number, such as the free Bare Bones Software's TextWrangler.  Open your AlbumData.xml file using TextWrangler and jump to the line number mentioned in the error message.  By looking at the data near this line number, you may be able to tell which photo in your library is causing the problem.  You cannot edit the AlbumData.xml file since iPhoto will just write it out again in the future, so it is important to identify the cause of the problem, and then to fix it using iPhoto itself!

To view AlbumData.xml, find your iPhoto Library in the Finder, and click on the library bundle while holding the control key (or right-click), and choose Show Package Contents.  This should reveal the AlbumData.xml file which can then be drag-and-dropped onto your text editor.  Once you have opened the AlbumData.xml file, navigate to the problematic line number indicated in the error message.  You will see data like the following.

<dict>
<key>MediaType</key>
<string>Image</string>
<key>Caption</key>
<string>IMG_8886</string>
<key>Comment</key>
<string></string>
<key>GUID</key>
<string>C3876274-275D-439B-B7D2-1670B04E3DB9</string>
<key>Aspect Ratio</key>
<real>1.333333</real>
<key>Rating</key>
<integer>0</integer>
<key>Roll</key>
<integer>2563</integer>
<key>DateAsTimerInterval</key>
<real>237203949.000000</real>
<key>ModDateAsTimerInterval</key>
<real>237203949.000000</real>
<key>MetaModDateAsTimerInterval</key>
<real>0.000000</real>
<key>ImagePath</key>
<string>/Users/rei/Desktop/2008_France/Originals/2008/2008_0708_Engenthal_Ualyf/IMG_8886.JPG</string>
<key>ThumbPath</key>
<string>/Users/rei/Desktop/2008_France/Data/2008/2008_0708_Engenthal_Ualyf/IMG_8886.jpg</string>
</dict>

By viewing this data, you can figure out the name of the problematic photo file, which can then be found using iPhoto, and then you can edit the meta-data using iPhoto to hopefully fix the problem.  Make note of the problematic photo, and quit your text editor.  Launch iPhoto and search for the problematic photo, and edit its meta-data using iPhoto.  Quitting iPhoto will write out a fresh AlbumData.xml file.

Please do not hesitate to contact us at This e-mail address is being protected from spam bots, you need JavaScript enabled to view it .  You may send us your AlbumData.xml file if you continue having problems parsing this file with PhotoCopy.

Steps to find your AlbumData.xml file:

iPhoto 6
-In a Finder window, locate your iPhoto Library
-Open the iPhoto Library folder
-Attach the file 'AlbumData.xml' to an email and email it to This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

iPhoto 7
-In a Finder window, locate your iPhoto Library
-Right click on the library (if your mouse has a right click), or hold down the Control key and click on the library
-A menu will appear, choose "Show Package Contents"
-A new finder window should appear with the contents of your iPhoto library
-Attach the file 'AlbumData.xml' to an email and email it to This e-mail address is being protected from spam bots, you need JavaScript enabled to view it

 

Comments (3) >> feed

omega watches said: _

  The aescetic beauty, as well as replica watches the century old commitment to quality, have collectors seeking out Breitling omega watches
November 03, 2009

Lord of the Rings Gold said: _

  Lord of the Rings Gold is one of the most important item when you like playing this game.
January 31, 2010
Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley


Write the displayed characters


busy
 
< Prev   Next >

Become a Fan!


Become a fan of 24x7digital on Facebook!  Interact with the developers.  Post your suggestions and comments.

iPhone App Fun

FEATURED APP:

Aw Craps!  - The #1 Craps Game for iPhone and iPod Touch!

EDUCATIONAL APPS:

123s
ABCs
ColorTalk
MelodyCalc
SightWords
Smiley Sight Words
States&Capitals
TeachMe: Toddler
TeachMe: Kindergarten
TimesTables
WordFamilies

FUN and GAMES:

Go Bears!
MiniVLTone
Whassup


Digital Photo Fun

Applications for Mac OS X:

Have more fun with your photos!

HappyNewYear!
HappyHolidays!

Developer Tools

Grab pixel-perfect high-quality LZW-compressed TIFF screenshots from the iPhone SDK's iPhone/iPad Simulator with iPhoneScreenGrabber. Now for iPad screenshots too!
 
 
©2002-2010 24x7digital LLC - all rights reserved worldwide.