Parsing Errors

Hi,
I read  : Using JTidy as a DOM parser for b0rken HTML.
I used paper codes:
    InputStream in = new FileInputStream(args[0]);
    Document root = (Document)tidy.parseDOM(in, null).getDocumentElement();
    NodeList nodelist = root.getElementsByTagName("SPAN");

 for (int n=0; n<nodelist.getLength(); n++)
        {
        System.out.print(n);
       
        }
I got these errors: 
Tidy (vers 4th August 2000) Parsing "InputStream"
line 4 column 1 - Warning: <table> lacks "summary" attribute
line 11 column 1 - Warning: <table> lacks "summary" attribute
line 16 column 48 - Warning: unknown attribute "vtlsbmark"
line 22 column 1 - Warning: <table> lacks "summary" attribute
line 26 column 1 - Warning: <table> lacks "summary" attribute
line 26 column 1 - Warning: missing </span> before <table>
line 44 column 4 - Warning: discarding unexpected </span>
line 47 column 1 - Warning: <table> lacks "summary" attribute
line 47 column 1 - Warning: trimming empty <p>
line 51 column 1 - Warning: <table> lacks "summary" attribute
line 56 column 12 - Warning: trimming empty <strong>
line 61 column 1 - Warning: <table> lacks "summary" attribute
line 64 column 57 - Warning: replacing element</p> by <br>
line 64 column 57 - Warning: inserting implicit <br>
line 65 column 4 - Warning: trimming empty <p>

InputStream: Document content looks like HTML proprietary
15 warnings/errors were found!

java.lang.ClassCastException: org.w3c.tidy.DOMElementImpl
        at HTMLTidy.main(HTMLTidy.java:27)

what does mean lacks "summary" attribute
any help
Thanks
Massoud

Received on Thursday, 28 December 2000 14:00:05 UTC