Can't sync or share photos due to corrupted ApertureData.xml
I have a large Aperture library, of which I sync a few albums to my iOS devices and do Home Photo Sharing to AppleTV using iTunes 11.4.
Recently this stopped working, because the list of Aperture albums in iTunes has become corrupted:
It seems like the data shared to iTunes with ApertureData.xml has become corrupted some how. The nesting of the list of albums is messed up. Rather than being a long list of albums, the list is now nesting them inside the previous, causing the list to scroll off the end of the scroll box, so I cannot select the albums I want.
Any ideas how to fix this? Is it Aperture's fault or iTunes?
Thanks!
MacBook Pro with Retina display, OS X Mavericks (10.9.5), Aperture 3.5.1