Ugh ugh ugh, and double-ugh.
Has nobody told you that document.write() is very very obsolete?
You *REALLY* should be doing all this with DOM methods, not document.write.
And not to ask a really dumb question, but...
Since you are fetching the date from
xml/pruebas/resp2.asp, why not do all the XML parsing and table creation in your ASP code? Response.Write in ASP is *NOT* obsolete. (Well, no more so than ASP itself is.)
Anyway, I assume by sub-child nodes you are referring to the <Column> tags in this segment:
Code:
<AC_LNA ncols="6">
<Row>
<Column>000084</Column>
<Column>1.230</Column>
<Column/>
<Column/>
<Column/>
<Column/>
</Row>
</AC_LNA>
???
If so, it's pretty easy:
Code:
var ac_lna = x[i].getElementsByTagName("AC_LNA");
var columns = ac_lna.getElementsByTagName("Column");
for ( var c = 0; c < columns.length; ++c )
{
var column = columns[c];
... do what you will with column ...
}
In other words, just repeat the same kind of code that got you the <Record> tags.
Note that you could get the <Row> tag inside of <AC_LNA> and then get the <Column> tags, but it's really not needed. getElementsByTagName() will skip over intermediate nodes to find all matches for you.