PHP Classes

XHTML_Validator: Validate XHTML without external PHP extensions

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 497 This week: 1All time: 5,839 This week: 571Up
Version License Categories
xhtml_validator 1.0GNU Lesser Genera...HTML, XML, Validation
Description 

Author

The XhtmlValidator can be used to validate XHTML documents. It uses only the expat extension functions always available under since PHP 3 and it does not need other external XML processing extensions.

The class parses the documents and check whether the tags and attributes used by the documents are allowed within the XHTML standard.

If validation errors are found, highlighted error messages and offending document line numbers will be returned.

This is an experimental class, so you should double check your code with <a href="http://validator.w3.org">the w3c validator</a>, as in only 1000 lines of code the XhtmlValidator lacks support for Encoding and Doctype validation

Picture of Bermi Ferrer Martinez
Name: Bermi Ferrer Martinez <contact>
Classes: 4 packages by
Country: Spain Spain
Age: 45
All time rank: 93920 in Spain Spain
Week rank: 420 Up10 in Spain Spain Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Plain text file XhtmlValidator.php Class Performs XHTML validation using only PHP

 Version Control Unique User Downloads Download Rankings  
 0%
Total:497
This week:1
All time:5,839
This week:571Up