News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Parsing Web Document Nodes with the Tidy Library in PHP 5
July 03, 2007 @ 11:50:00

Continuing on with their look at using Tidy in PHP5 applications, DevShed has posted this second part of the series, a look a parsing document nodes with the help of the Tidy library.

In this second article of the series I'm going to discuss how to extract different sections of a specific (X)HTML document (called file nodes) by using the capabilities provided by some additional functions included with this library.

They start by pulling the document into a Tidy instance and formating it a bit before moving on. Following this, they work with a few of the methods Tidy has to offer to pull information from the parsed document - tidy_get_html, tidy_get_head, tidy_get_body and tidy_get_output.

0 comments voice your opinion now!
php5 parse document tutorial library gethtml gethead getbody get output php5 parse document tutorial library gethtml gethead getbody get output


blog comments powered by Disqus

Similar Posts

DZone.com: Closure Object Binding in PHP 5.4

Wan Qi Chen: Background jobs with php and resque (Series)

PHPBuilder.com: Using the Factory Pattern in PHP Applications

PHPMaster.com: Learning Loops

Gonzalo Ayuso's Blog: Howto Send/Read SMSs using a GSM modem, AT+ commands and PHP


Community Events





Don't see your event here?
Let us know!


unittest series framework install zendserver podcast symfony interview laravel tips package community library deployment release opinion update language api introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework