Exported OPML file is not correct XML [#6231]

To get bugs in the current release fixed, please report them here.

Moderator: Gurus

momander
Posts: 3
Joined: Wed Dec 23, 2009 2:03 am

Exported OPML file is not correct XML [#6231]

Post by momander » Wed Dec 23, 2009 2:15 am

How to reproduce
1. Add a few podcast feeds.
2. Select Tools / Scripts / Export subscribed podcasts.

Result
The exported file is not strict XML because it's missing the initial <?xml?> element. This means other apps that require strict XML, like Android apps, can't process the file.

Expected result
A strictly correct XML file, which requires this to be the first line:
<?xml version='1.0' ?>

Environment
WinXP SP2, MediaMonkey 3.1.1.1261 Standard Edition

Happy Holidays!

/Martin

Ludek
Posts: 2895
Joined: Fri Mar 09, 2007 9:00 am

Re: Exported OPML file is not correct XML

Post by Ludek » Wed Dec 23, 2009 1:54 pm

It is OPML file, see http://www.opml.org/spec2
including
<opml version="1.0">

if you want to do a XML file from it you can by modifing the
MediaMonkey/Scripts/ExportOPML.vbs

momander
Posts: 3
Joined: Wed Dec 23, 2009 2:03 am

Re: Exported OPML file is not correct XML

Post by momander » Wed Dec 23, 2009 10:38 pm

How about that -- I didn't know OPML wasn't an XML format. Thanks for the pointer about how to tweak the export function.

All the best,

/Martin

momander
Posts: 3
Joined: Wed Dec 23, 2009 2:03 am

Re: Exported OPML file is not correct XML

Post by momander » Wed Dec 23, 2009 10:49 pm

I read the OPML spec at http://www.opml.org/spec2. All the example OPML files on that page started with the line

<?xml version="1.0" encoding="ISO-8859-1"?>

But exports from MediaMonkey v3.1.1.1261 don't include that initial line. So it still looks like a MediaMonkey bug to me. What do you think? Am I missing something?

/Martin

Ludek
Posts: 2895
Joined: Fri Mar 09, 2007 9:00 am

Re: Exported OPML file is not correct XML

Post by Ludek » Thu Dec 24, 2009 9:23 pm


Post Reply