Seems to me I've seen somewhere, a way for parsing and extracting content (text, ect) from a html page. I believe it could be set, say between certian tags, ie: <body> content to get </body>. Anyone know of this? I know information can be extracted from a URL with the parsing function, but what about an html page?

A good example: I submit my url to a xyz website, after submitting, xyz comes up with another page which contains code I need to put on to my page.

<!-- xyz banner code -->
<a href="www.whatever.com">
Visit Whatever.com Today! </a>
<!-- end of xyz banner code-->

(is there a whatever.com and did I just plug it? hahaha)

Any help would be greatly appciated.
Thanks.

ronnie