I am using Jtidy parser in java.
URL url = new URL(\"www.yahoo.com\"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); InputStream in = c
I think this is the nicest solution, based on the answer of Joost:
Tidy tidy = new Tidy(); tidy.setShowErrors(0); tidy.setShowWarnings(false); tidy.setQuiet(true);
All three are necessary.