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
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Saturday, 26 January 2002 19:56:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:51 GMT