View Single Post
Old 11-01-2012, 08:42 PM   PM User | #7
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
I think it would be more important to see the XML he is trying to load.

As his code is written, it makes no sense:

First, this line:
Code:
x=xmlhttp.responseXML.documentElement.getElementsByTagName("<TD>");
will get *ALL* the <TD> elements into the collection referenced by x.

But then this line
Code:
 xx=x[i].getElementsByTagName("<TD>")
gets all the <TD> elements *INSIDE* of one of the <TD>s.

Now, I grant you that is possible.

XML such as:
Code:
<TD>
    <TD>something</TD>
</TD>
<TD>
    <TD>more stuff</TD>
</TD>
would allow that. But is that LIKELY?

I want to see the XML.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote