ok, so the data source of this part of the form looks something like this:
Repeating section:
-Species Record
Species_ID
-Group_1mm
-Group_1mm_sub
count
length
weight
-Group_1cm
-Group_1cm_sub
count
length
weight
For each specie I have to check the weight/length ratio and then I write out to a txt file if not correct ratio.
The code below is what I have been using. the problem is, it goes through "count" length" "weight" for all the species. I need to check those values specie by specie so when I write out to the file I am ponting the values to the right specie.
XPathNavigator myNav = MainDataSource.CreateNavigator();
XPathNodeIterator NodeIterator = myNav.Select("/my:myFFIM_base_table/my:Species_Records/my:SpeciesGroup/my:GROUP_1MM/my:GROUP_1MM_sub", NamespaceManager);
while (NodeIterator.MoveNext())
{
myNode = NodeIterator.Current.CreateNavigator();
CountOneM = myNode.SelectSingleNode("my:COUNT_1MM", NamespaceManager).Value;
LengthOneM = myNode.SelectSingleNode("my:TOTAL_LENGTH_1MM", NamespaceManager).Value;
WeightOneM = myNode.SelectSingleNode("my:TOTAL_WEIGHT_1MM", NamespaceManager).Value;
}
Thanks!