Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9012093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:54:27+00:00 2026-06-16T02:54:27+00:00

Precisely… can multiple <content:encoded> elements exist inside an <item> in a valid feed? Full

  • 0

Precisely… can multiple <content:encoded> elements exist inside an <item> in a valid feed?


Full Story: I am modding the markup of my blog’s RSS feeds for Google Currents, and for the app to display image galleries in articles as slideshows, the markup of my feed should look like this:

<rss version="2.0" ... xmlns:media="http://search.yahoo.com/mrss/">
...
<item>
    <title>Item One</title>
    <link>http://example.com/news/item-one</link>
    <description>
        <p>This is an example feed item</p>
    </description>
    ...
    <pubDate>Thu, 04 Aug 2011 19:41:00 GMT</pubDate>
    <guid>http://example.com/news/item-one</guid>
    <media:content height="84" type="image/jpeg" width="140" url="http://static.example.com/photo1.jpg">
        <media:description>Caption for Photo 1</media:description>
    </media:content>
    <media:content height="100" type="image/jpeg" width="200" url="http://static.example.com/photo2.jpg">
        <media:description>Caption for Photo 2</media:description>
    </media:content>
    <content:encoded><![CDATA[
        <p>All the content goes here.</p>
        <p>This is another line.</p>
    ]]></content:encoded>
    ...
</item>
...
</rss>

But due to the way my WordPress blog works, the galleries are shown within the article (which is usual), which means, the same happens in the RSS feeds as well. But the <media:content> element cannot be a sub-element of <content:encoded>.

So, I am wondering if I can do it like this and it’d still be valid RSS feed:

<rss version="2.0" ... xmlns:media="http://search.yahoo.com/mrss/">
...
<item>
    <title>Item One</title>
    <link>http://example.com/news/item-one</link>
    <description>
        <p>This is an example feed item</p>
    </description>
    ...
    <pubDate>Thu, 04 Aug 2011 19:41:00 GMT</pubDate>
    <guid>http://example.com/news/item-one</guid>

    <content:encoded><![CDATA[
        <p>All the content goes here.</p>
    ]]></content:encoded>

    <media:content height="84" type="image/jpeg" width="140" url="http://static.example.com/photo1.jpg">
        <media:description>Caption for Photo 1</media:description>
    </media:content>
    <media:content height="100" type="image/jpeg" width="200" url="http://static.example.com/photo2.jpg">
        <media:description>Caption for Photo 2</media:description>
    </media:content>

    <content:encoded><![CDATA[
        <p>This is another line.</p>
    ]]></content:encoded>

    ...
</item>
...
</rss>

As you can see, I’d basically be splitting the <content:encoded> element into two, to give way for the slideshow markup. So, there’ll be two <content:encoded> elements inside an <item>. Is that okay?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:54:28+00:00Added an answer on June 16, 2026 at 2:54 am

    Having run my feed through W3C’s Feed Validation Service, the answer seems to be "YES", multiple <content:encoded> elements can exist inside an <item> in a feed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can any one precisely explain the difference between ASP.NET MVC1 vs MVC2.. and if
In java world (more precisely if you have no multiple inheritance/mixins) the rule of
I wonder if someone can distinguish precisely between these? For my understanding, Core Graphics
I have tried to precisely explain my problem in the title itself. Can I
Does the standard define precisely what I can do with an object once it
Given that PI/2 can never be represented precisely in floating point, is it safe
Is there anyone who can explain how hardware cursor works precisely? How does it
Is there a way to precisely position a background image with CSS? Code: .content
I am planning to store a json_encoded string on my database. I can't precisely
I found sometimes I can't precisely layout the element. you can see the question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.