4

I am using HTML Tidy in the command line environment for Windows. I need to force the conversion of some html files to xml, even if there are errors.

I do the following steps:

  • create a file "conf.txt", whose content is:
    force-output: yes
  • type the following command line:
    tidy -config conf.txt -o filename.xml filename.htm

However, no "filename.xml" gets generated. Note I am able to get an output XML file from the same 'bad' HTML file when using the online version of tidy at http://infohound.net/tidy/tidy.pl.

What am I doing wrong?

psubsee2003
  • 8,563
  • 8
  • 61
  • 79
  • 1
    Never mind! I actually figured out a way around: **tidy --force output yes -o filename.xml filename.htm** Thank you to all the people who read the question! – Lorenzo A. Rossi Oct 03 '12 at 16:02

1 Answers1

1

I figured out a way:

tidy --force output yes -o filename.xml filename.htm