PHP Classes

XHTML_Validator: Validate XHTML without external PHP extensions

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
Not enough user ratingsTotal: 497 All time: 5,841 This week: 488Up
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: 46
All time rank: 93920 in Spain Spain
Week rank: 199 Up8 in Spain Spain Up
Innovation award
Innovation award
Nominee: 2x

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

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:497
This week:0
All time:5,841
This week:488Up