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
More popular XML
- Amba XML document 3.2 (3 years, 6 months 20 days ago)
- simple XML 1.0 (3 years, 2 months 22 days ago)
- Handle remote data with PHP 5 and REST Web service fp_websrest_sm_02 (4 years, 8 months 24 days ago)
- admin_XML.lib 1.0 (8 years, 5 months 6 days ago)
- DTD 2 PHP 1.0 (8 years, 5 months 9 days ago)
- 40.8 KB
- 09/27/2008 02:33:23