PHP Classes

HTML SAX Parser: Parse HTML documents using regular expressions

Recommend this page to a friend!
  Info   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum (3)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 2,971 This week: 1All time: 1,256 This week: 560Up
Version License Categories
html_saxparser 1.0The PHP LicenseHTML
Description 

Author

This class can parse HTML documents using regular expressions to split the document character data, the begin and end tag elements.

For each type of elements, the class call custom callback that can do any type of processing. The callback functions may bu global or be functions of a class of a given object.

Picture of Alexey G. Piyanin
Name: Alexey G. Piyanin <contact>
Classes: 1 package by
Country: Russian Federation Russian Federation
Age: 47
All time rank: 109135 in Russian Federation Russian Federation
Week rank: 411 Up22 in Russian Federation Russian Federation Up

  Files folder image Files  
File Role Description
Accessible without login Image file 1.jpg Data Image for example1.html
Accessible without login Image file 2.jpg Data Image for example1.html
Accessible without login Image file 3.jpg Data Image for example1.html
Accessible without login Image file 4.jpg Data Image for example1.html
Accessible without login Plain text file changelog.txt Doc. Changelog
Accessible without login HTML file example1.html Data Example HTML source
Accessible without login Plain text file example1.php Example Example #1 (show only images on page)
Accessible without login Plain text file example1wc.php Example Example #1 with use class
Accessible without login Plain text file example2.php Example Example #2 (page tree)
Accessible without login Plain text file example2wc.php Example Example #2 with use class
Accessible without login Plain text file example3.php Example Example #3 (find only first image)
Accessible without login Plain text file example3wc.php Example Example #3 with use class
Accessible without login Plain text file example4.php Example Example #4 (get body tag content)
Accessible without login Plain text file example5.php Example Example #5 (get page part - news on yahoo.com)
Accessible without login Plain text file example6.php Example Example #6 (get wikipedia page content)
Plain text file PageProcessor.php Class Class use in examples
Plain text file SAXParser.php Class Main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,971
This week:1
All time:1,256
This week:560Up
User Ratings User Comments (2)
 All time
Utility:90%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:63%StarStarStarStar
Examples:92%StarStarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:321
 
Can be good alternative do DOM, regarding low usage of memory...
2 years ago (Juraj Puchký)
60%StarStarStarStar
Excellent
14 years ago (kishore kumar)
80%StarStarStarStarStar