I have been using SimpleXML, and got used to calling the document tree like this:
Code:
$xml->params->param->id;
Now, however, I am trying to return a whole page, but only need to know the contents of one div. Can cURL do anything clever like SimpleXML, or am I going to have to get my hands dirty using a find and replace?

However, how would a find and replace work? I want to say, hey, find the div with an id of totalnumber. Then, just return the contents of this div to me, store it, and get rid of everything else. Thanks.