Update Existing Atom Entry

白昼怎懂夜的黑 提交于 2019-12-11 01:43:09

问题


I manage an atom feed that needs to be able to accommodate revisions to articles and somehow have client feed readers acknowledge the update. Currently the only thing I can do is make an entire new entry in my feed however that's not the desired outcome.

I thought I'd be able to update the time stamp on the updated and/or published element of the entry and the readers would handle the update appropriately. However all my testing with google reader and various other feed readers are ignoring my change.

Any thoughts? Is there something I'm missing?


回答1:


SELF FIX

Turns out the issue was a few things. 1) A few of the readers didn't support updating existing articles. 2) Google reader does support updating an article however it's on it own time cycle that google dictates. The actual length of time that google reader checks for updates is unknown.

I hope the following link helps anyone else. http://www.google.com/support/reader/bin/answer.py?hl=en&answer=70642




回答2:


Are you using the correct format for the date in the updated element?

It should be according to the rules specified by RFC 3339.

Examples:

<updated>2003-12-13T18:30:02Z</updated>
<updated>2003-12-13T18:30:02.25Z</updated>
<updated>2003-12-13T18:30:02+01:00</updated>
<updated>2003-12-13T18:30:02.25+01:00</updated>

See http://en.wikipedia.org/wiki/Atom_(standard)#Date_formats

And more from the spec: http://www.atomenabled.org/developers/syndication/atom-format-spec.php#date.constructs



来源:https://stackoverflow.com/questions/7142565/update-existing-atom-entry

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!