Exporting Apple Music Data to .xml File fails every time

I am trying to export my Apple Music data to a .xml file but I get a message saying "We can't open the document Library.xml because we found a problem with its contents. No error detail available. Location: Line 2, Column:9"


That's all there is! So because I can't open it, I can't correct it!... a lot of Mac users have had the same issue over a 3-year period but there has never been answer. Any ideas out there?

MacBook Pro (M1 Pro, 2021)

Posted on Dec 5, 2025 7:44 AM

Reply
1 reply

Dec 5, 2025 8:55 AM in response to Dgriffit

What version of macOS are you running?


What application are you trying to open the XML file in? It should be a structured text file that can be opened in a variety of text editors. It can potentially be imported back into Music at a later date to rebuild playlists, for example, provided all of the items referenced in it are still at the same paths. Typically the XML file is only needed for third party apps that want to know what is in the Music library and cannot access it directly. It shouldn't be used to migrate a library to a new computer.


tt2

Exporting Apple Music Data to .xml File fails every time

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.