W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2011

Re: Automate XML Conversion Process

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 03 Jun 2011 13:50:41 +0200
To: abhi saxena <rooprajnish.saxena@gmail.com>
Cc: html-tidy@w3.org
Message-ID: <jfihu69s0dsntlq0ffg3st1i30hdaai7ig@hive.bjoern.hoehrmann.de>
* abhi saxena wrote:
>Is there any way to write a batch script so that  it will run the batch and
>do the conversion one by one?
>tidy -asxhtml -numeric < (runtime filename) > (conversion file)
>Any help you can provide is much appreciated

That depends on your batch script processor. On Windows you can do
something like

  % mkdir xhtml
  % for %a in (*.html) do tidy ... %a > xhtml\%a

which would process all .html files in the current directory and store
the output in the 'xhtml' directory. HTML Tidy does not have built-in
methods to do this (without modifying the input files).
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Friday, 3 June 2011 11:51:01 UTC

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