Skip to main content
WolfShade
Legend
March 13, 2018
Answered

RSS pubdate not appearing

  • March 13, 2018
  • 1 reply
  • 507 views

Hello, all,

I am creating RSS feeds for two sections of this project, and both of them are failing to display the pubdate for each item.

<?xml version="1.0" encoding="windows-1252"?>
<rss version="2.0" xmlns:dc="https://purl.org/dc/elements/1.1/">
    <channel>
        <title>Public Affairs News</title>
        <description>Keep updated on the latest PA News</description>
        <link>https://xxx.yyy.gov/pa_news_2016r/display_news.cfm</link>
        <item>
            <title>TCCC testimony with House Committee on Armed Services (8 Mar, 0800 CST)</title>
            <description>TCCC testimony with House Committee on Armed Services</description>
            <link>https://xxx.yyy.gov/pa_news_2016r/display_news.cfm?uuid=AFE645BC-5056-A127-5D68B657B348B27E</link>

            <pubdate>Fri, 23 Feb 2018 19:26:14 -0500</pubdate>
        </item>
        <item>
            <title>AFROTC Det. 790 cadets visit USTRANSCOM</title>
            <description>AFROTC Det. 790 cadets visit USTRANSCOM</description>
            <link>https://xxx.yyy.gov/pa_news_2016r/display_news.cfm?uuid=13BAEE91-5056-A127-5DBE3C5E1358D5E7</link>
            <pubdate>Fri, 23 Feb 2018 19:17:36 -0500</pubdate>
        </item>
        <item>
            <title>CoSCAST with Chief of Staff Maj. Gen. John C. Flournoy Jr. - 1 March 2018 </title>
            <description>CoSCAST with Chief of Staff Maj. Gen. John C. Flournoy Jr. - 1 March 2018 </description>
            <link>https://xxx.yyy.gov/pa_news_2016r/display_news.cfm?uuid=090B3D5D-5056-A127-5D34CD9C5479CFD3</link>
            <pubdate>Fri, 22 Feb 2018 08:34:27 -0500</pubdate>
        </item>

     </channel>

</rss>

Am I missing something?  This is not displaying the pubdate in FF (Live Bookmarks and Brief plugin), IE, and Chrome just shows the code.

I've used <pubdate> and <dc:date>, neither is displaying the date under the link or description.

Please see http://www.feedforall.com/sample.xml for a sample of how I am trying to get it to appear.

V/r,

^ _ ^

    This topic has been closed for replies.
    Correct answer Jon Fritz

    <pubdate> does not equal <pubDate>

    ...check the case structure of your tags and it should work.

    1 reply

    Jon Fritz
    Community Expert
    Jon FritzCommunity ExpertCorrect answer
    Community Expert
    March 13, 2018

    <pubdate> does not equal <pubDate>

    ...check the case structure of your tags and it should work.

    WolfShade
    WolfShadeAuthor
    Legend
    March 13, 2018

    That was it.  Y'know, I'm _used_ to being capitally-correct (is that even a thing?) when it comes to JavaScript.. never once occurred to me that it would matter in XML.

    Thanks, Jon!

    V/r,

    ^ _ ^