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

tidy - ? html tree number

From: Chunbo Shao <cxs0187@omega.uta.edu>
Date: Sun, 7 Jan 2001 11:46:45 -0600 (CST)
To: Sami Lempinen <lempinen@iki.fi>
cc: dsr@w3.org, html-tidy@w3.org
Message-ID: <Pine.OSF.4.10.10101071038570.15179-100000@omega.uta.edu>
Dear Sir,

Great thanks for your kind help.

When i use TestDom.java, I find the number of the child generated by it is
not correct in html tree. The actual code is 
         NodeList children = node.getChildNodes();
         if ( children != null ) {
            int len = children.getLength();
            for ( int i = 0; i < len; i++ ) {
               print(children.item(i));
            
Here, it seems that "len" is the number of children, but it is not
correct. Is this problem solved? how?

Thanks a lot.

Best regards,


Major
Received on Sunday, 7 January 2001 12:46:55 GMT

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