Hello,
I have this small prodcedure that loops through a repaeting section. However, I seem to be missing something something obvious that I cannot see. It never advances to the next node in the repeating section, so if I attempt to use the data from the section, I always get the data from the first row in the repeating section.
Any help would be appreciated.
Code:
Dim CISection As DOMNodeList
Dim CIField As DOMNodeCISection = thisXDocument.DOM.selectNodes("/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_SelfEmploymentIncome")
CIField = CISection.nextNode()
For cnt As Integer = 0 To CISection.length - 1writeval = CIField.selectSingleNode("/dfs:myFields/dfs:dataFields/d:App1171/d:DHS1171_Application/d:DHS1171_HouseholdMember/d:DHS1171_SelfEmploymentIncome/@GrossIncome").text
MsgBox(writeval)
CIField = CISection.nextNode()
Next