Gett value from single node

Topics: Developer Forum, User Forum
Apr 23, 2012 at 10:28 AM

I try get single value from this node:

from this site :,depozyty.html


        Dim text As String
        Dim strona As New HtmlAgilityPack.HtmlWeb()
        Dim doc As New HtmlAgilityPack.HtmlDocument()
        doc = strona.Load(",depozyty.html")
        text = doc.DocumentNode.SelectSingleNode("//html/body/div[4]/div[2]/div[2]/div[2]/div[2]/div/table/tbody/tr/td[2]").InnerText

I have error when try gett vale:

System.NullReferenceException was unhandled 

So, where I have error ??