I want to import the html from a web page and then parse it and retrieve http links from the elements. I am able to grab the html and put it in a string. Also, if I have the html in xml format, I am able to do a for each loop to retrieve the data. But I am not able to figure out how to take the html string and make it readable by LINQ. I think I'm missing some simple part here.
Sub GetTest()
Dim source As String = "http://gd2.mlb.com/components/game/mlb/year_2018/month_03/day_29/"
Dim Client As New WebClient
Dim html As String = Client.DownloadString(source)
Dim xml = XElement.Parse(html)
Dim links = From link In xml...<a>
For Each link In links
MessageBox.Show(link.@href)
Next
End Sub
` and also simple javascript expressions like `a < 5` can break the parser. That's why HtmlAgilityPack exists. – derloopkat Jan 13 '18 at 18:02