<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect1 id="zend.feed.findFeeds">
    <title>Retrieving Feeds from Web Pages</title>

    <para>
        Web pages often contain <emphasis>&lt;link&gt;</emphasis> tags that refer to feeds with
        content relevant to the particular page. <classname>Zend_Feed</classname> enables you to
        retrieve all feeds referenced by a web page with one simple method call:
    </para>

    <programlisting language="php"><![CDATA[
$feedArray = Zend_Feed::findFeeds('http://www.example.com/news.html');
]]></programlisting>

    <para>
        Here the <methodname>findFeeds()</methodname> method returns an array of
        <classname>Zend_Feed_Abstract</classname> objects that are referenced by
        <emphasis>&lt;link&gt;</emphasis> tags on the <filename>news.html</filename> web page.
        Depending on the type of each feed, each respective entry in the
        <varname>$feedArray</varname> array may be a <classname>Zend_Feed_Rss</classname> or
        <classname>Zend_Feed_Atom</classname> instance. <classname>Zend_Feed</classname> will throw
        a <classname>Zend_Feed_Exception</classname> upon failure, such as an
        <acronym>HTTP</acronym> 404 response code or a malformed feed.
    </para>
</sect1>
<!--
vim:se ts=4 sw=4 et:
-->