PHP Classes

HTML SAX Parser: Parse HTML documents using regular expressions

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 2,971 All time: 1,256 This week: 488Up
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: 48
All time rank: 109135 in Russian Federation Russian Federation
Week rank: 206 Up13 in Russian Federation Russian Federation Up

  Files folder image Files (17)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,971
This week:0
All time:1,256
This week:488Up
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:317
 
Can be good alternative do DOM, regarding low usage of memory...
3 years ago (Juraj Puchký)
60%StarStarStarStar
Excellent
15 years ago (kishore kumar)
80%StarStarStarStarStar