Sub Process_Globals
Private HtmlParser As MiniHtmlParser
End Sub
Sub AppStart (Args() As String)
HtmlParser.Initialize
Dim root As HtmlNode = HtmlParser.Parse(File.ReadString(File.DirAssets, "opera.html"))
Dim div As HtmlNode = HtmlParser.FindNode(root, "div", HtmlParser.CreateHtmlAttribute("id", "content"))
Dim table As HtmlNode = HtmlParser.FindNode(div, "table", HtmlParser.CreateHtmlAttribute("width", "100%"))
Dim tbody As HtmlNode = table.Children.Get(1)
For Each nodex As HtmlNode In tbody.children
If nodex.Name = "tr" Then
Dim data As List = nodex.Children
For Each tdata As HtmlNode In data
If tdata.Name = "td" Then
For i = 1 To tdata.Children.Size - 1
Dim chNode As HtmlNode = tdata.Children.Get(i)
If chNode.Name = "text" Then
Log(HtmlParser.GetTextFromNode(tdata, i))
End If
Next
Log("_________________")
End If
Next
End If
Next
End Sub