August 2003
Intermediate to advanced
624 pages
15h 3m
English
As I said earlier, this is where most of the work gets done. Again, here's the DOM-relevant snippet of code with the pseudocode as comments. The passed Row Element is referred to as nRow. All the DOM work gets done in the DO loop.
// Columns NodeList <- Get Row's childNodes attribute ColumnList = nRow.getChildNodes(); // DO until Columns NodeList.item[index] is null while (ColumnList.item(iRowChildren) != null) { // Skip the Row's Text nodes if ( ColumnList.item(iRowChildren).getNodeType() != Node.ELEMENT_NODE) { iRowChildren++; continue; } // Get a shorthand name for this guy nColumn = ColumnList.item(iRowChildren); // Column Name <- get NodeName attribute sColumnName = nColumn.getNodeName(); ... |