As HtmlAgilityPack is yet not supported in windows phone 8.1,referencing manually in the project was a trick solution. But this is not the only problem. I could use XPath
for my past project to select nodes. Now I can see that HtmlDocumentNode.SelectNode()
function is no more(because of version compatibility may be).
what I used in my past project was similar to this
HtmlNode parent = document.DocumentNode.SelectSingleNode("//ul[@class='songs-list1']");
HtmlNodeCollection x = parent.ChildNodes;
I searched over stackoverflow and google and got an Idea that It's still possible to select nodes using Linq.
I'm seeking for a block of code which will work like SelectNodes
, SelectNode
.
Loading the HtmlDocument
asynchronously would be appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…