hey guys ,
I have 4 orders and the following code iterates and prints out the each of the values.
At the end it has reached the last order.
My problem : i would like to come back to the first order. ie. i would like to set the ni at the first order again.
i could find any method where i could spring back to the first element.
any help would be appreciated.
XPathNodeIterator ni = nav.Select("/orders/order");
while (ni.MoveNext())
Console.WriteLine(ni.Current.Value);