Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Are child nodes allowed in RSS Description element?

I would like to add child nodes to the description element in an RSS feed. I can't seem to find any definitive information that indicates it is either allowed or not.

The declarations are:

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

rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom

The current feed looks like this:

<item>

<title>Whatever</title>

<link> Whatever </link>

<guid>whatever</guid>

<pubDate> EDT</pubDate>

<description>

<b>Start Date:</b> Dec 12 2012 7:00PM<br/>

<b>End Date:</b> Dec 2 2011 7:00PM<br/>

<b>Location:</b>Wherever<br/>

<b>Event Type:</b>Type<br/>

<b>Description:</b>

</description>

</item>

What I would like to do is this:

<item>

<title>Whatever</title>

<link> Whatever </link>

<guid>whatever</guid>

<pubDate> EDT</pubDate>

<description>

<start><b>Start Date:</b> Dec 12 2012 7:00PM<br/></start>

<end><b>End Date:</b> Dec 2 2011 7:00PM<br/></end>

<location><b>Location:</b>Wherever<br/></location>

<type><b>Event Type:</b>Type<br/></type>

<desc><b>Description:</b></desc>

</description>

</item>

This would essentially create child nodes of the description element. Would this break readers if I did this? The reason for this is to more easily extract elements out of the <description> node.

1 Answer

Relevance
  • Anonymous
    10 years ago
    Favorite Answer

    The best way to know is to validate your rss which should be done with any rss feed. The validator will also point out any problems. http://validator.w3.org/feed/

    Also you cannot use < or > within your description they must be replaced with their ASCII equivalent.

    < -- & lt; (remove space) > -- & gt;

    Hope that helps.

    .

    Source(s): Discover the Power of RSS Marketing: http://say.yes2rss.com/
Still have questions? Get your answers by asking now.