[wp-hackers] Validating Atom 1.0 feed

Kevin Newman CaptainN at unFocus.com
Fri Feb 2 01:09:25 GMT 2007


Lloyd Budd wrote:
> On 2/1/07, Kevin Newman <CaptainN at unfocus.com> wrote:
>> Hello,
>>
>> I made this Atom Feed (attached), and thought I'd share it back to the
>> community. It could use a bit of cleanup, and is generally not optimal
>> in places, but it does validate. I'd love to finish this up and
>> integrate it with Word Press better, maybe even implement the Atom API
>> for updating (if I understand the API correctly).
>>
>> I did a little searching the archives for mention of Atom, and it seemed
>> the conclusion was that Atom in general is pretty DOA, is that still the
>> prevailing view? Any other thoughts?
>
> Hi Kevin,
>
> There was no attachment, but if I understand you properly, you are
> likely duplicating functionality that is either already implemented or
> being worked on. Download WordPress trunk
> http://wordpress.org/download/svn/
>
> Thanks for participating!
> Lloyd

Hey,

I took a look at some of the stuff in the SVN, and it seems progress has 
definitely been made. :-) I did notice that some things were different 
from what I have done though, and I thought I'd ask about those 
differences and a few other things.

1. The post id (atom id element) are set using guid. That's how it was 
in Word Press 2.1, though that didn't seem to be working, which causes a 
validation error. I guess the question is, is the guid good enough, or 
should the id be more universally unique, using something like a tag 
uri? I made a function that converts a permalink, and a date to a tag 
uri. I guess a related question might be, how do you feel about tag 
uris? :-)

2. Has any work been done on the Atom API? I was thinking this might be 
useful for that:
http://www.dentedreality.com.au/webpad/ I may take a closer look to see 
how useful.

3. Does get_post_time return the date/time of the original post, or the 
last update? How do I get the other time?

4. Is there a way to get the date/time the whole blog was set up, to use 
in the feed's id element.

Thanks,

Kevin N.





More information about the wp-hackers mailing list