W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2002

Re: Converting HTM to XML

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Sun, 27 Jan 2002 01:50:46 CET
Message-Id: <200201270056.TAA18919@tux.w3.org>
To: <html-tidy@w3.org>
Cc: "Mervyn & Marica Jones" <jones@netdial.co.za>
In <NFBBINPFOLLDFNBEPDILOEAJCAAA.jones@netdial.co.za>, "Mervyn & Marica Jones" <jones@netdial.co.za> writes:
> I visited your website and found a similar topic bu I was unable to access
> the answer.  Is there an example anywhere of the original HTML file and the
> new XML file??  I have a project to complete.  Please help

Just take any HTML file and run

        tidy -asxml file.html >newfile.html

The new file will be XHTML (which follows the rules for XML documents).

Klaus Johannes Rusch
Received on Saturday, 26 January 2002 19:56:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC