Quantcast
Channel: Get values of XDocument - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by MarcinJuraszek for Get values of XDocument

$
0
0

Product is not a direct child of Itens, and that's why you're getting an exception. Try changing you loop source:

foreach (XElement item in xmlDocument.Descendants("Itens").Elements("Item"))

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>