Я пытаюсь добавить указанный c медиа-тег в канал RSS:
<media:content url="http://localhost/Content/One" fileSize="41587668" type="video/mp4" medium="video"/>
Это тег формата MRSS.
Я попытался добавить AttributeExtension к каналу:
feed.AttributeExtensions.Add(New XmlQualifiedName("Media", "http://www.w3.org/2000/xmlns/"), "http://search.yahoo.com/mrss/")
Dim item1 As SyndicationItem = New SyndicationItem("Item One", "This is the content for item one", New Uri("http://localhost/Content/One"), "ItemOneID", DateTime.Now)
item1.ElementExtensions.Add(New XElement(m + "content", New XAttribute("type", "image/jpg"),
New XAttribute("url", "http://localhost/Content/One"),
New XAttribute("fileSize", "123456"), New XAttribute("medium", "image")).CreateReader())
Вместо этого он генерирует элемент:
<item>
<guid isPermaLink="false">ItemOneID</guid>
<link>http://localhost/Content/One</link>
<title>Item One</title>
<description>This is the content for item one</description>
<a10:updated>2020-04-27T13:13:18-04:00</a10:updated>
<content type="image/jpg" url="http://localhost/Content/One" fileSize="123456" medium="image" xmlns="http://search.yahoo.com/mrss/"></content>
</item>
Не могу разобраться, как добавить префикс пространства имен Media к синдикации Есть ли простой способ сделать это?