Are there any freely available tools that would check for things like a missing </p>
or <br>
(instead of <br />
)?
Thanks!
Are there any freely available tools that would check for things like a missing </p>
or <br>
(instead of <br />
)?
Thanks!
There is the w3c validator.
You could also use any of the many validating XML parsers to validate your XHTML against one of the XHTML DTDs (depending on which one you are using).
It sounds like you are actually asking:
How can I convert HTML to XHTML?
In which case, I suggest looking at HTML Tidy or a combination of HTML::HTML5::Parser and a bit of code to output the resulting DOM as an XML document.
The W3C Markup Validation Service lets you check the validity of the most commonly used web documents like html, xhtml... You can validate your code by providing a URI, File Upload or by pasting.
The Validation Service is open source so if you need a offline version you can also download the code and use it locally. (link to source code)