[PHP] Validation XHTML code and repairing broken one

2009-09-17 Thread Dušan Novaković
Hello,

I have few questions about validation XHTML and repairing if it's
broken. The problem is that I have some, for example HTML code (simple
web page) and want to load that page to DOMDocument and than make
something of it. That part works perfect, but if there is unclosed tag
or something like that when I try to load that page I get an error
because now that code is not valid. So my question would be, is there
some way that I could build some script in php that would run thought
that page and check if it's valid or not, and if it's not than try to
repair it. Something that you have in all tools, for example Eclipse,
NetBeans, etc. If anyone have any idea, please help me, because I'm
stuck in here :-(

Regards,
Dusan

-- 
made by Dusan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Validation XHTML code and repairing broken one

2009-09-17 Thread Bob McConnell
From: Dušan Novakovic

 I have few questions about validation XHTML and repairing if it's
 broken. The problem is that I have some, for example HTML code (simple

I use a Firefox plug-in called HTML Validator and then edit the source code for 
the pages in NetBeans. It uses either Tidy or the W3C SGML parser or both, your 
choice. Unfortunately it relies on some MS-Windows applications so it won't 
install on Linux. So I can use it on pages I build at work, but not on my 
personal stuff at home.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php