How can i gat a specific tag from each of multiple xml items?

How can i get the tag from each of the xml items ?

I already have the nameSpace in for each

image

give a try at:

item.Descendants(xnsDefault + "xProd").First().Value
or
item.Element(xnsDefault + "prod").Element(xnsDefault + "xProd").Value

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.