xmlfeed

what is the difference between <pubDate> and <dc:date> in feed's structure


can any one please let me know the main difference between <pubDate> and <dc:date> in feed's structure. also please explain

<dc:date>
<dc:creator>
<dc:....>
<dc:....>

will those be required for building feeds?


Solution

  • According to this page (from the internet archive):

    So, let me get this straight. RFC2822 is the format used by the pubDate element in RSS 2.0, and looks like this: Fri, 21 Nov 1997 09:55:06 -0600

    ISO8601 is used in the dc:date element in RSS 1.0 (and sometimes RSS 2.0) and looks like this: 1998-05-12T14:15:00

    The difference is in the format. Both define the same thing.

    This post (from the internet archive) has an explanation of the <dc:creator> tag and how it differs from the <author> tag:

    Therefore, if you are only using the name of the author in an RSS item make sure to use the <dc:creator> tag and not the <author> tag

    The RSS standard is flexible enough for you to miss out some information, but some readers might object if there is, say, a date missing which is useful for ordering the items. Personally, I'd include the date and author and be consistent about which form I used.