new to jTidy, need help urgently

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 UTC