[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[syndication] Re: locating syndication feeds



>> If I click on an XML link and then click the bookmarklet it fails
>> miserably, and after some thoughthinking, I'm guessing it's because
>> browsers don't give XML a DOM that the JS "location.href" can

In retrospect, if I was on the ball last night,
I would have said "the browser doesn't give a DOM about XML".

>> no changes to existing sites. It'd be no effort to add a rel scanner to
>> various reader programs, but it still requires webmasters to
>> include the code.
>
>How would you try and get to the RSS file?

In non-optimized code, I'd just download the HTML from the current URL, and
run a regexp that looked for 'rel="syndication"' and then grabbed the
nearest href located within the same <> as the rel. Is that what you were
talking about?

-- 
      ICQ: 2927491      /      AOL: akaMorbus
   Yahoo: morbus_iff    /  Jabber: morbus@jabber.org
   morbus@disobey.com   /   http://www.disobey.com/