问题
I am still trying programming for windows phone 8.1 but I have a little problem. I want parse HTML data and I found one tutorial for better mind this tutorial = click here; but It works great only in windows phone 7/8 with HTMLAgility pack. I tried manual add library but versions sl3-wp, winrt45 don't support method:
htmlDocument.DocumentNode.SelectNodes("//div[starts-with(@class, 'list_item')]"));
and version for wp7 doesn't work too. Any Ideas how to parse data for WP 8.1 ? thank you in advance (And sorry for my bad English :) )
回答1:
Since HTML agility pack wasn't supported using Universal Apps I got their source code from codeplex and created a new library just for universal Apps. You can get the binary and the source in my New Blog
I'm just starting with this blogging thing but may this may be useful until the team provides an official release.
回答2:
HTML agility pack is still not supported in Windows Phone 8.1 Runtime or Universal App project. But the above solution will work on Windows Phone Silverlight 8.1.
Click on Blank App (Silverlight) and target it to Windows Phone 8.1. Add the libraries HTTP client, html agility pack. Also look for "System.Xml.Xpath.dll for Silverlight 4" in the Nuget manager and install that. Add the references and the code should work.
来源:https://stackoverflow.com/questions/24598363/html-agility-pack-for-windows-phone-8-1