K
kb at donovanhill
Trying to iterate over values within a repeating table, my vb.net code below
iterates over all node values within the form, not the selected group, would
anyone know where I am going wrong, any help would be greatly appreciated.
Dim navigator As XPathNavigator = CreateNavigator()
Dim nodes As XPathNodeIterator =
navigator.Select("/my:myFields/my:group2", NamespaceManager)
Dim nodesNavigator As XPathNavigator = nodes.Current
Dim nodestext As XPathNodeIterator =
nodesNavigator.SelectDescendants(XPathNodeType.Text, False)
While nodestext.MoveNext()
MessageBox.Show(nodestext.Current.Value)
End While
iterates over all node values within the form, not the selected group, would
anyone know where I am going wrong, any help would be greatly appreciated.
Dim navigator As XPathNavigator = CreateNavigator()
Dim nodes As XPathNodeIterator =
navigator.Select("/my:myFields/my:group2", NamespaceManager)
Dim nodesNavigator As XPathNavigator = nodes.Current
Dim nodestext As XPathNodeIterator =
nodesNavigator.SelectDescendants(XPathNodeType.Text, False)
While nodestext.MoveNext()
MessageBox.Show(nodestext.Current.Value)
End While