PHP equivalent of perl's HTML::TreeBuilder;

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I have a large Dreamweaver site to migrate into a CMS.
So I need to pull out the navigation blocks and page display blocks.

Each page has navigation found in one regularly occurring
table and page content found in another regularly
occurring table. So it shouldn't be too hard.

With perl I can (short example only) pull the content,
which always appears in the third table on a page,


   package whatever;
   use HTML::TreeBuilder;

   $file = shift;

   $tree = HTML::TreeBuilder->new;


   @tables = $tree->find('table');

   print $tables[2]->as_HTML();

Is there a pear package or some such that provides the same
convenience in PHP? Or will I have to roll my own block element
puller from scratch?

Site Timeline