问题
I have a Windows Phone 8 app that will read a lot of HTML source from a website. The HTML source contains quite a bit of information, however the information I need is all stored in tr and td tags within the HTML like so:
<tr>
<td class="first">
</td>
<td >
Origin
</td>
<td>
Airline
</td>
<td>
Flight Number
</td>
<td>
22 Feb 11:50
</td>
<td class="last">
Arrived 12:35
</td>
</tr>
I intially thought about using the HTMLAgilityPack but it doesn't seem to be supported on Windows Phone 8, at least not without some fiddling with different settings. I am reluctant to include a reference to that add-in as a result.
Is there another way for me to parse out the information I need? Or will I just have to read through each line of HTML and pull out any text enclosed in tr and td tags?
If so, how do I read through the HTML? I have it downloaded to a string, but I am unsure how to read through it.
来源:https://stackoverflow.com/questions/21957106/read-html-on-windows-phone-8