4
Vote

Media RSS Support

description

When I try to create a Media RSS feed the output is slightly flawed. I get <content></content> tags rather than what I should get <media:content> </media:content>
 
 
About 'Media RSS', here is a helpful primer: http://www.webmonkey.com/tutorial/Use_Media_RSS
 
The problem I am experiencing is with the output of my Media RSS, which is essentially a new standard allowing multiple media artifacts (like a video and a song) to exist in one item.
 
The Media element looks like this: <media:content> </media:content>
 
The output from this RSS Tool Kit looks like this: <content> </content>
 
otherwise everything works perfectly! I was able to generate a class, load it up with values, but when I emit the XML I don’t get a <media:content /> I get rather a <content /> which just won't work.
 
Does anyone know if there is a version that will support output RSS in the full Media RSS standard? Anyone know anything about support for Media RSS in this RSS ToolKit?
 
I'm attaching a text file with; My RSS template, my ASHX code, and my flawed output. Thanks for any help!
 
Best Regards,
bsteinwand

file attachments

comments

PHeonix25 wrote Jun 25, 2009 at 3:26 AM

I had exactly the same problem, and have submitted a patch.
If you'd like to know what you need to do in the mean-time, just let me know and I can step you through it.
Cheers,
-Pat

bsteinwand wrote Jun 25, 2009 at 4:21 PM

Hi Pat,

That would be great. I have heard a few suggested fixes but they were all hacks. I'd love to hear your suggestion on how to work around the problem.

Very much looking forward to that patch being implemented. Seems like the lack of support for namespaces is a pretty big deal.

Ben

PHeonix25 wrote Sep 18, 2009 at 12:31 AM

Hey all,
I have uploaded the patch with some basic instructions. You'll need to download both halves from here: http://aspnetrsstoolkit.codeplex.com/SourceControl/PatchList.aspx
If you're still stuck, the only thing you need to really do is just before generating your RSS (via ToXML or any of the other implementations), add any namespaces that you want.

i.e.:
    Dim ns As New Xml.Serialization.XmlSerializerNamespaces
    ns.Add("media", "http://search.yahoo.com/mrss/")
    RSS.ToXml(DocumentType.Rss, ns)

PHeonix25 wrote Sep 18, 2009 at 12:34 AM

Here's the implementation according to the MediaRSSProblem.txt file that was attached to the original issue.

simon831 wrote Mar 19, 2010 at 10:00 AM

Have the patches and suggestions now been integrated into the main release?