Hello Paul,
With regards to your first objective, you can get the answer by doing .childNodes on the IXMLDomNode. This will give you an IXMLDomNodeList. You can do a .length on this to find out the number of children of the row node
About why the loop is not working correctly, did you debug to see where its actually failing when you have a ...