Skip to main content

iTunes .xml files have been converted to Edge HTML and now can't be imported by the sonos app


I have been using Sonos controller to play my iTunes playlists on Sonos.  I’ve been using it for over two years.  Suddenly only a handful of old playlists (some not even on iTunes at this time)  are showing in Sonos music library.  None of my recent playlists show up when I update the music library.  After looking for solutions, I tried to export the .xml file for the playlist BUT the .xml files are now showing up as Microsoft Edge html files.  Is that why Sonos does not recognize them???  The path to the iTunes music folder is correct but the playlist and library files in that folder are html not xml.  If I open the file in notepad it looks like the correct .xml file but will not save as an xml file.  Is there anyway to fix this and get my playlists back on Sonos???  Thanks

Did you find what you were looking for?

8 replies

Airgetlam
  • 42407 replies
  • February 8, 2025

You can see the types of files Sonos can ‘see’ in the supported audio formats FAQ. You’ll note HTML isn’t in there. Note that Sonos only reads existing files, it doesn’t ‘do’ anything to them. 

It sounds like you’re using a non-music application to deal with music files. Normally speaking, they don’t support music formats as a ‘save’ function, as that isn’t what they’re designed for.

Many years ago, on a machine that may have been retired, I downloaded a free version of mp3.tag, or something like it. It had the capability at the time to open music files, make certain changes, and save them as music files. I’ve not used this application in a very long time, but if you’re concerned about a ‘save as’ function, I’d encourage you to look much further than a text editor, which is designed to work with text, not music files. 


Ken_Griffiths
spurcell wrote:

I have been using Sonos controller to play my iTunes playlists on Sonos.  I’ve been using it for over two years.  Suddenly only a handful of old playlists (some not even on iTunes at this time)  are showing in Sonos music library.  None of my recent playlists show up when I update the music library.  After looking for solutions, I tried to export the .xml file for the playlist BUT the .xml files are now showing up as Microsoft Edge html files.  Is that why Sonos does not recognize them???  The path to the iTunes music folder is correct but the playlist and library files in that folder are html not xml.  If I open the file in notepad it looks like the correct .xml file but will not save as an xml file.  Is there anyway to fix this and get my playlists back on Sonos???  Thanks

Are you exporting the .xml file from iTunes as mentioned in this link…

https://support.apple.com/en-gb/guide/itunes/itns2998/windows


  • Author
  • Contributor I
  • 4 replies
  • February 9, 2025
Thank you both for the replies.
Yes I followed these instructions “ Save a copy of a single playlist or use it in iTunes on another computer: Select the playlist in the sidebar, choose File > Library > Export Playlist, then choose XML from the Format pop-up menu.” Even after choosing XML, the exported file is HTML.  Clearly iTunes is reading the HTML file because all of my library is there in iTunes.  I only opened it in notepad to see if it had all of the xml info there (which it did).  I tried to change the application to open the file but there were only a few options and Sonos was not one of them.   BTW, I don’t even use microsoft Edge.  I don’t understand why it changed these files.  Is there any way to change them back to xml extensions and prevent microsoft edge from turning them into html?  Another interesting thing to me is that most of the playlists that do show up in Sonos are old playlists that are not currently in my iTunes library.  I’m wondering if it is reading an old xml file but if so, I don’t know where it is.  No xml files are visible in my iTunes library folder!?!?

Thank you for your help.

Steve


Airgetlam
  • 42407 replies
  • February 9, 2025

What makes you say the format is HTML? Is that the extension listed on the file, or has your OS been set to open .xml files using Microsoft Edge? I’ve had to struggle in the past to keep Edge from taking over my windows OS, despite the fact I don’t want to use it. 


  • Author
  • Contributor I
  • 4 replies
  • February 9, 2025

Again, thank you for trying to help me out.  When I check “properties” of the file it says “Microsoft Edge HTML Document”.  Interestingly I just checked my back up files as far back as 2021 and as recently as January 2025.  On the backup folders the files have the Edge logo BUT the details show iTunesLibrary.xml.  I copied them from my backup and pasted onto my desktop to see what would happen...once on the computer they became Edge HTML document.  So I don’t know if they are really still xml and just have the HTML document label or if they are truly HTML documents.  I appreciate your efforts to help.


Airgetlam
  • 42407 replies
  • February 9, 2025

It sounds like you’ve defined the OS to open .xml files in Microsoft Edge (or, more likely, Microsoft did this for you). 

I need to go to my windows machine (I’m mostly iOS and Mac) to figure out how to alter this, I don’t recall off hand. 


Airgetlam
  • 42407 replies
  • February 9, 2025

Here is a good reference:

https://td.usd.edu/TDClient/33/Portal/KB/ArticleDet?ID=9080

I’d first download and install 

https://www.mp3tag.de/en/

so you have something to point the OS to. For all I know, it may automatically, during the install, set the OS to open the necessary files in it, rather than Microsoft Edge. 


  • Author
  • Contributor I
  • 4 replies
  • February 11, 2025

Thank you Bruce

I will certainly give it a try!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings