<?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 <code>&lt;link&gt;</code> 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 role="php"><![CDATA[
$feedArray = Zend_Feed::findFeeds('http://www.example.com/news.html');
]]></programlisting>
    <para>
        Here the <code>findFeeds()</code> method returns an array of <classname>Zend_Feed_Abstract</classname>
        objects that are referenced by <code>&lt;link&gt;</code> tags on the news.html web page. Depending on
        the type of each feed, each respective entry in the <code>$feedArray</code> 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 HTTP 404 response code or a malformed feed.
    </para>
</sect1>
<!--
vim:se ts=4 sw=4 et:
-->