Sunday 15 May 2011

get data from html page with windows phone c# -


I have this page: www.unnu.com/music-artists

to complete it List of all artists and their links are required.

  HTMLAgilityPack.HtmlDocument htmldoc = new HTMLAgilityPack.HtmlDocument (); // There are several options, as required html doc. Optionficsestated tags = true; // filePath is the path to a file containing HTML html.doc.Load ("http://www.unnu.com/music-artists"); // Use: htmlDoc.LoadHtml (xmlString); To load from string (htmlDoc.LoadXML (xmlString) // ParseErrors is an ArrayList in which the load statement may be an error if (htmlDoc.ParseErrors! = Null & html.doc.ParseErrors.Count ()> gt; 0 ) {// necessary to handle any parse errors} and {if (htmldoc.DocumentNode! = Tap) {HtmlAgilityPack.HtmlNode bodyNode = htmlDoc.DocumentNode.SelectSingleNode ("// a"); if (bodyNode! = Null) {ListBox1 =? ??? // It is not working, it does not know whether the code is correct and just missing here or all this is wrong.}}}   

please I need it, it's a job If you need Skype then you can add gnrmalazagnr.

I'm not sure that you What do you want to do here, but if you want to download and read the HTML file, then you have WebClient web = new WebClient (); web.downloadStringAsync (New Yuri ("www.unnu.com/music-artists") Required); Web.DownloadStringCompleted + = web_DownloadStringCompleted;

Zero web_DownloadS Tring complete (Object Sender, DownloadStringCompletedEventArgs e) {string HtmlPage = e.Result; }

No comments:

Post a Comment