How to get a full Path to the specific tag from a weird web page HTML

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<pre style="font-family:Consolas; font-size:13; color:black; background:white I want to read a specific node from one CHINESE page taobao.com so when the program loads the url it will return a nodes innertext.<br/>but i cant get the right path to the node (on picture). <span style="color:#2b91af HtmlDocument doc = <span style="color:blue new <span style="color:#2b91af HtmlDocument();
doc.LoadHtml(<span style="color:#a31515 "http://item.taobao.com/item.htm?id=14099303551");
<span style="color:#2b91af HtmlNode price = doc.DocumentNode.SelectSingleNode(<span style="color:#a31515 " //I need this... ");
my_textbox.Text = price.InnerText; <br/> i tried to get the correct xpath (with xpath method) to this tag with Oxygen XML Developer which gave me this /html/body[1]/div[4]/div[2]/div[1]/input[1]/div[2]/div[1]/div[2]/div[1]/ul[1]/li[1]/strong[1] but it isnt working.<br/> <br/> <img alt="" src="http://i47.tinypic.com/m7vtvt.png <br/> <br/> [/code]
<br/>
<br/>
<br/>
<br/>

View the full article
 
Back
Top