I am using Jtidy parser in java.
URL url = new URL(\"www.yahoo.com\");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
InputStream in = c
Looking at the Documentation I found a few methods which may do what you want.
There is setShowErrors
, setQuiet
and setErrout
. You may want to try the following:
Tidy tidy = new Tidy();
tidy.setShowErrors(0);
tidy.setQuiet(true);
tidy.setErrout(null);
doc = tidy.parseDOM(in, null);
One of them may be enough already, these were all the options I found. Note that this will simply hide the messages, not do anything about them. There is also setForceOutput
to get the output, even if errors were generated.