O'Reilly logo

Real World XML by Steven Holzner

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required