多くのテーブルを含む PHP ページを解析しようとしています。これらのテーブルを選択しようとすると、コレクションは null を返しますか?
Dim web As New HtmlAgilityPack.HtmlWeb()
Dim htmlDoc As HtmlAgilityPack.HtmlDocument = web.Load("URL")
Dim html As String
Dim tabletag As HtmlNodeCollection = htmlDoc.DocumentNode.SelectNodes("//table")
Dim tableNode As HtmlNode = htmlDoc.DocumentNode.SelectSingleNode("//table[@summary='List of services']")
If Not tabletag Is Nothing Then
html = tableNode.InnerText
End If
このページには確かにいくつかのテーブルがありますが、null を返す理由がわかりませんか?