Automatic Conversion from HTML to XHTML

You may already have a huge Web site full of HTML pages, and you might be reading all this with some trepidation. How are you going to convert all those pages to the far more strict XHTML? In fact, there's a utility out there that can do it for you: the Tidy utility, created by Dave Raggett. This utility is available for a wide variety of platforms, and you can download it for free from http://tidy.sourceforge.net/. There's also a complete set of instructions on that page. (Other options include the HTML Kit at http://www.chami.com/html-kit/.)

Here's an example: I'll use Tidy in Windows to convert a file from HTML to XHTML. In this case, I'll use the example HTML file we developed earlier, as saved in a ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.