tblRow = node.getFirstChild();
while( tblRow != null ){
d = tblRow.getNextSibling();
if(
(tblRow.getNodeType() == Node.ELEMENT_NODE)
&&
tblRow.getNodeName().equals("table:table-column")
){
n--;
if( n < 0 ){
tblRow.getParentNode().removeChild(tblRow);
} }
tblRow = d;
}
-_-_-