I have a rather large XML file that I am iterating through and need to return 2 sets of nodes and values. Consider this:
Code:
<OverCode>
<Products>
<Code>###</Code>
<Price>###</Price>
</Products>
----More XML Data Here----
<Shipping>
<Code>####</Code>
<Price>####</Price>
</Shipping>
</OverCode>
Now if i want to select the price from the products element i would use XpathNavigator.Select("//Shipping/Price") now say after i retrieved that value I wanted to select the price from the shipping element, do I have to redefine XpathNavigator to select the new nodes? Also take into consideration that the XML file i am working with is about 100 lines long, and I only want to pull data from 2 or 3 NodeSets, not the entire document.
"There is nothing more honorable then doing a thing well."