Reputation: 263
I'm trying to extract the html content using silverlight. My application aim is to enable user to navigate to any html page and when he clicks a button that page content should be extracted.
Upvotes: 0
Views: 134
Reputation: 10347
Use Html Agility Pack. it seems be useful for your issue.
See here for using it on Silverlight:
Have you tried using the HAPLight project that is in the SVN repository right now. It is a Silverlight version of Html Agility Pack and should work on WP7 with little modification (it targets Silverlight 4 so you may need to remove a few things)
Upvotes: 0
Reputation: 13150
You can grab any HTML content from any site using WebClient.
WebClient client = new WebClient ();
string html = client.DownloadString("http://www.msn.com");
Upvotes: 1