showing date on ashx page (rss)

S

sck10

Hello,

I created an ashx file for my rss feed (rss.ashx). I notice on the site
(http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml) that the date
(Yesterday, October 30, 2006, 3:02:37 PM) is shown above the "description"
tag and in front of the green arrow. My question is, what tag shows this
date?

On my a page, the date doesn't show.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title>RSS Feed</title>
<link>http://mylink.com</link>
<description>Home Site</description>
<ttl>60</ttl>

<item>
<title><![CDATA[ Allcatel-Lucent Merger Update ]]></title>
<link>http://MERGER_0.HTML</link>
<guid isPermaLink="true">http://MERGER_0.HTML</guid>
<description><![CDATA[ Alcatel and converged networks. ]]>
</description>
<pubDate>12/30/2006 7:05:00 PM</pubDate>
</item>
</channel>
</rss>

Thanks, sck10
 
W

Walter Wang [MSFT]

Hi,

After carefully reviewed your question, I'm not still quite clear about it.
Did you mean the "pubDate" element in the RSS file?

Based on your previous posts about RSS, I assume you're using the RSS
Toolkit. You could use "rssdl.exe" to generate a strong typed object model
over the RSS feed and access the pubDate property easily. You can find an
example here:


#ScottGu's Blog : Awesome ASP.NET 2.0 RSS Tool-Kit Released
http://weblogs.asp.net/scottgu/archive/2006/02/22/438738.aspx
The RSS Toolkit also adds support for creating a strongly-typed object
model over a remote RSS feed. This allows you to program against RSS data
in a clean, easy way.


Let me know if I've misunderstood your question.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

sck10

Hi Walter,

Actually, I am creating the feed from my own ashx page, not using the tool.
My page is working, I just cant' get the date to show. I noticed other
sites show the date the same way. When I look at the source file, I can't
figure out what xml tag is being used.

So if you go to the site
(http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml), you will see
"Today, November 01, 2006, 34 minutes ago". When I look at the source file,
that text is not in there. Somehow, its being generated. What I am trying
to figure out is how to generate the date in my ashx page.

Thanks for your help...
 
W

Walter Wang [MSFT]

Hi,

I'm sorry but I can only see the raw xml in IE about the url
"http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml".

Regarding the "Today, November 01, 2006, 34 minutes ago", I guess it's
generated by some script (or XSLT?). Consider this: to get the "34 minutes
ago" info, you must compute it using current date, which means it's dynamic
rather than static. What I mean is that this should be done by the clients
who consume your RSS feed, your feed should only need to contain the static
"pubDate" field.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top