how i can get parts of web pages by php
<p>i want make a news site gets its content from other news sites,
open the rss feed and feach url and open the html dom of the page then
get just the text of the news
i think i have to use the DOMDocument class of the php?</p>

<pre><code>&lt;?php
$doc = new DOMDocument();
$doc-&gt;loadHTML("&lt;html&gt;&lt;body&gt;Test&lt;br&gt;&lt;/body&gt;&lt;/html&gt;");
echo $doc-&gt;saveHTML();
?&gt;
</code></pre>

<p><a href="http://www.php.net/manual/en/class.domdocument.php" rel="nofollow">http://www.php.net/manual/en/class.domdocument.php</a></p>
