Question

ici est l'URL et XPath. url: http://product.dangdang.com/product.aspx ? product_id = 21026883 & ref = livre-01-E1 XPath: // durée [@ class = 'detail_all']

doc.SelectSingleNode (XPath) .innertext ne pouvez pas obtenir ALL InnerText cette XPath!

pourquoi?

Comment puis-je résoudre ce problème?

thx!

Était-ce utile?

La solution

Vous ne pouvez pas utiliser SelectSingleNode, car il ne retourne le premier span ou nœud si vous voulez.

Vous devez itérer sur doc.SelectNodes et concaténer vos résultats.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top