Login   Register  
PHP Classes
elePHPant
Icontem

XHTML_Validator: Validate XHTML without external PHP extensions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 491 All time: 5,343 This week: 1,687Up
Version License Categories  
xhtml_validator 1.0GNU Lesser General Publ...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: 36
All time rank: 86719 in Spain Spain
Week rank: 1179 Down35 in Spain Spain Down
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:491All time:5,343
 This week:0This week:1,687Up