Read HTML on Windows Phone 8

痞子三分冷 提交于 2019-12-25 00:41:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!