I am parsing a website using HtmlAgilityPack for android in Xamarin. I know there is the first() keywords but does anyone know how I would be able to access the second instance of html text? For instance, I only would like to see "Arrival Predictions not available at this time" as shown in the app sample picture.
void Btn_Click(object sender, System.EventArgs e)
{
HtmlWeb hw = new HtmlWeb();
//stores site in a document object of HTMLDocument class
HtmlDocument document = hw.Load("https://broncoshuttle.com/simple/routes/3164/stops/36359");
HtmlNodeCollection nodes = document.DocumentNode.SelectNodes("//ul//li[contains(.,'')] ");
string result = "";
foreach( var item in nodes)
{
result += item.InnerText;
}
MyTextView.Text = result;
}