PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2006-08-28 (10 years ago) RSS 2.0 feedNot enough user ratingsTotal: 493 All time: 5,578 This week: 1,083Up
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
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:493
This week:0
All time:5,578
This week:1,083Up