Thomas J.S.: HTML2XML

Beitrag lesen

hallo,

ich habe mir TidyHTML runtergeladen, doch gibt mir das Programm den konvertierten Quelltext nur als Standartausgabe zurück, wie kann ich die ausgabe in eine Datei umlenken?

hast du http://www.w3.org/People/Raggett/tidy/ gelsen?

ps: Tidy macht XHTML und nicht XML.
"Using a Configuration File:
Tidy now supports a configuration file, and this is now much the most convenient way to configure Tidy. Assuming you have created
a config file named "config.txt" (the name doesn't matter), you can instruct Tidy to use it via the command line option -config config.txt, e.g. tidy -config config.txt file1.html file2.html"

// sample config file for HTML tidy
              indent: auto
              indent-spaces: 2
              wrap: 72
              markup: yes
              output-xml: no
              input-xml: no
              show-warnings: yes
              numeric-entities: yes
              quote-marks: yes
              quote-nbsp: yes
              quote-ampersand: no
              break-before-br: no
              uppercase-tags: no
              uppercase-attributes: no
              char-encoding: latin1
              new-inline-tags: cfif, cfelse, math, mroot,
                mrow, mi, mn, mo, msqrt, mfrac, msubsup, munderover,
                munder, mover, mmultiscripts, msup, msub, mtext,
                mprescripts, mtable, mtr, mtd, mth
              new-blocklevel-tags: cfoutput, cfquery
              new-empty-tags: cfelse
----

Grüße
Thomas