while (iterator.MoveNext())
{
XPathNodeIterator products = iterator.Current.Select("products/product");
while (products.MoveNext())
{
XPathNavigator productNavigator = products.Current;
XPathNodeIterator prodDetails = productNavigator.SelectDescendants(XPathNodeType.Text, false);
String name, link;
while (prodDetails.MoveNext())
{
if (prodDetails.CurrentPosition == 1)
name = prodDetails.Current.Value;
if (prodDetails.CurrentPosition == 2)
link = prodDetails.Current.Value;
/// utilize your strings here


0 comments:
Post a Comment