Html Agilty For Wp7 - Silverlight C#
I am currently trying to parse specfic Tables from a DIV in an HTML doc. I had this working windows Silverlight, but WP7 HTML agility pack seems to be a different thing altogether.
Solution 1:
Try something like this then:
var flightTableCell =
doc.DocumentNode
.Descendants("div")
.FirstOrDefault(x => x.Id == "FlightInfo_FlightInfoUpdatePanel")
.Element("table")
.Element("tbody")
.Elements("td")
.FirstOrDefault(x => x.Attributes.Contains("flight"));
var value = flightTableCell.InnerText;
this.textBlock1.Text = value;
Since you can't use xpath, you're forced to manually traverse the DOM.
Post a Comment for "Html Agilty For Wp7 - Silverlight C#"