I am analyzing the timetable of a bus company. I get the necessary data from its website. A node of a bus stop looks like this:
<tr data-stopcode="F01093">
<td>5</td>
<td ><span>Fifth street</span></td>
</tr>
I have this node in "hmln" and would like to get the name of the stop. I tried two method but only the first was working. Can you tell me what is wrong with the second one?
Working:hmln.Elements("td").Last().FirstChild.InnerText
Not Working: -> "Object reference not set to an instance of an object."hmln.LastChild.FirstChild.InnerText