There is the following code
WebClient client = new WebClient(); string html = client.DownloadString("https://habr.com/top/"); Next I try to create an XML document:
XDocument xdoc= XDocument.Load(html); gives an error message:
"Error parsing EntityName"
line in the document on which the error takes off:
{Text, Value = "/ Font Face Observer v2.0.13 - © Bram Stein. License: BSD-3-Clause / (function () {'use strict'; var f, g = []; function l (a) {g.push (a); 1 == g.length "}
I tried through Parse (html) - I still can not make out this line. can someone tell me how to handle this kind of string to write to XML - and then go through the nodes. Or do you need to write your own string handler using XMLReader and XMLReaderSettings ?
I do not use AngleSharp libraries and others, trying to figure out LinqToXml .