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

new to jTidy, need help urgently

From: Raymond Tan <qpoint@bigfoot.com>
Date: Sun, 3 Mar 2002 02:42:57 +0800
Message-ID: <002001c1c21a$14309130$79c313ac@ronin>
To: <html-tidy@w3.org>
Hello everyone. 
I am new to jTidy. I am using jTidy to convert parse a HTML from a URL to XML. but I am getting a lot of errors. I urgently need this function for my school project. Appreciate any help rendered! 

the following are the generated error log from jTidy. 

Tidy (vers 4th August 2000) Parsing "InputStream" 
line 11 column 1 - Warning: <style> isn't allowed in <html> elements 
line 56 column 1 - Warning: <table> lacks "summary" attribute 
line 67 column 1 - Warning: <div> isn't allowed in <table> elements 
line 69 column 5 - Warning: <td> repeated attribute 
line 69 column 5 - Warning: <td> repeated attribute 
line 81 column 5 - Warning: <td> repeated attribute 
line 81 column 5 - Warning: <td> repeated attribute 
line 86 column 1 - Warning: <div> isn't allowed in <table> elements 
line 88 column 5 - Warning: <td> repeated attribute 
line 88 column 5 - Warning: <td> repeated attribute 
line 100 column 5 - Warning: <td> repeated attribute 
line 100 column 5 - Warning: <td> repeated attribute 
line 105 column 1 - Warning: <div> isn't allowed in <table> elements 
line 107 column 5 - Warning: <td> repeated attribute 
line 107 column 5 - Warning: <td> repeated attribute 
line 119 column 5 - Warning: <td> repeated attribute 
line 119 column 5 - Warning: <td> repeated attribute 
line 124 column 1 - Warning: <div> isn't allowed in <table> elements 
line 126 column 5 - Warning: <td> repeated attribute 
line 126 column 5 - Warning: <td> repeated attribute 
line 138 column 5 - Warning: <td> repeated attribute 
line 138 column 5 - Warning: <td> repeated attribute 
line 143 column 1 - Warning: <div> isn't allowed in <table> elements 
line 145 column 5 - Warning: <td> repeated attribute 
line 145 column 5 - Warning: <td> repeated attribute 
line 157 column 5 - Warning: <td> repeated attribute 
line 157 column 5 - Warning: <td> repeated attribute 
line 162 column 1 - Warning: <div> isn't allowed in <table> elements 
line 164 column 5 - Warning: <td> repeated attribute 
line 164 column 5 - Warning: <td> repeated attribute 
line 176 column 5 - Warning: <td> repeated attribute 
line 176 column 5 - Warning: <td> repeated attribute 
line 181 column 1 - Warning: <div> isn't allowed in <table> elements 
line 183 column 5 - Warning: <td> repeated attribute 
line 183 column 5 - Warning: <td> repeated attribute 
line 195 column 5 - Warning: <td> repeated attribute 
line 195 column 5 - Warning: <td> repeated attribute 
line 200 column 1 - Warning: <div> isn't allowed in <table> elements 
line 202 column 5 - Warning: <td> repeated attribute 
line 202 column 5 - Warning: <td> repeated attribute 
line 214 column 5 - Warning: <td> repeated attribute 
line 214 column 5 - Warning: <td> repeated attribute 
line 222 column 1 - Warning: discarding unexpected </div> 

InputStream: Document content looks like HTML 4.01 Transitional 
43 warnings/errors were found! 

[Fatal Error] :111:45: Attribute "width" was already specified for element "td". 
XMLHelperException: Unable to parse the given string 
Attribute "width" was already specified for element "td". 

Best Regards, 
ray 
Received on Saturday, 2 March 2002 13:39:47 GMT

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