<?
/*
Author: Alexey G. Piyanin (e-mail: drdrzlo at mail dot ru)
Date: Feb 15 2005
Title: Page tree with use class
*/
include('SAXParser.php');
include('PageProcessor.php');
$procObj = new PageProcessor();
$URL = 'http://yahoo.com';
$parser = new HTML_SAXParser();
$parser->init($procObj,'begin','endTag','character');?>
<html>
<body>
<center>Source page:<br><iframe src="<?=$URL?>" width="600" height="400" ></iframe><br><br>
Page tree:<br></center>
<?$parser->parse($URL);?>
</body></html>
|