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

JTidy Uncleaned output

From: Neil Leathers <neil.leathers@techne.ca>
Date: Thu, 27 Mar 2003 11:35:08 -0500
To: "Tidy" <html-tidy@w3.org>
Message-ID: <000001c2f47e$d4606920$cb6fa8c0@JAMAICA>

I was wondering how to get JTidy to output malformed documents. I need to
rewrite the urls in a document and have been using the process of parseDom()
-> <manipulate DOM> -> pprint(dom) but this fails on many of the relevant
documents. I am able to process the DOM so I would assume that the DOM tree
is well formed though the document is not. The error messages I see mention
that the document has errors preventing output. The output I get is a
skeleton HTML document with no content (nothing in the body, bare header).
Since this is preventing output not input, everything should be fine if I
can turn off cleaning. Is this possible? Am I merely not setting the correct
configuration options? Would it be reasonable to request a function uprint
as a complement to pprint (ugly/pretty)?

Neil Leathers,
  www.techne.ca
Received on Thursday, 27 March 2003 11:36:24 GMT

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