htmlAgilityPack xpath issue ? which is right ?

Topics: Developer Forum, User Forum
Feb 10, 2011 at 7:41 AM

i use html agility pack to parse html source of url http://product.dangdang.com/product.aspx?product_id=21005060&ref=book-01-E1 :

when i use firebug to locate "当 当 价:¥17.30" , it gets " /html/body/div[4]/div[2]/div[3]/p/span "  , htmldoc.DocumentNode.SelectNodes()  returns   null 

but when i use HAExplorer to locate that , it gets "/html[1]/body[1]/div[3]/div[2]/div[3]/p[1]"  , and  htmldoc.DocumentNode.SelectNodes()  returns  the result .

can  anybody tell me why ?

thx //