here is the url and xpath . url : http://product.dangdang.com/product.aspx?product_id=21026883&ref=book-01-E1 xpath: //span[@class='detail_all']

doc.SelectSingleNode(xpath).innertext just can't get ALL innertext with this xpath !

why ?

how can i fix this ?

thx !

有帮助吗?

解决方案

You cannot use SelectSingleNode, as it will only return the first span or node if you want.

You have to iterate over doc.SelectNodes and concatenate your results.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top