First, I would like to say that the tool is great! However, there is a webpage that HtmlAgilityPack is not finding the correct element when I give the xpath nor it is generating the correct xp...
Id #34973 | Release:
| Updated: Feb 11 at 8:49 PM by gustavoas | Created: Feb 11 at 8:49 PM by gustavoas
HtmlAgilityPack.HtmlDocument is not working some times.
Id #34922 | Release:
| Updated: Jan 23 at 5:11 AM by rameshk14 | Created: Jan 23 at 5:11 AM by rameshk14
I manually append a comment node (var comment = hdoc.CreateComment, hdoc - an instance of HtmlDocument class, aNode.AppendChild(comment)).
Then I call hdoc.DocumentNode.OuterHtml to see the whole ...
Id #34908 | Release:
| Updated: Jan 17 at 8:57 AM by PrComm | Created: Jan 17 at 8:45 AM by PrComm
I found an issue where I'm trying to parse an HTML document and load it to XElement.
This specific HTML had a comment at the header that was going like this:
<!-- Comment comment comment -- --...
Id #34841 | Release:
| Updated: Jan 4 at 9:48 PM by LidanHackmon | Created: Jan 4 at 9:44 PM by LidanHackmon
I have run across some situations when the head tag was not closed. In this case the parser does not detect the body, so it's missing from the HtmlDocument tree.
Id #34711 | Release:
| Updated: Dec 9, 2013 at 5:23 PM by mohanbabu400 | Created: Dec 2, 2013 at 10:11 AM by MariusBancila
The following Html causes it not to parse the body.
Id #34669 | Release:
| Updated: Dec 9, 2013 at 5:23 PM by mohanbabu400 | Created: Nov 21, 2013 at 9:31 AM by Mriswith
HtmlWeb class throws an exception when it can not detect the document encoding.
After some investigation I decided not to use this class at all and wrote my own charset
detector based on Mozilla ch...
Id #34628 | Release:
| Updated: Nov 8, 2013 at 1:17 PM by PrComm | Created: Nov 6, 2013 at 5:17 PM by PrComm
If you pass a NetworkCredential but not a WebProxy to the Load method, the credentials are ignored.
var web = new HtmlWeb();
var credentials = new NetworkCredential(...);
Id #34607 | Release:
| Updated: Oct 29, 2013 at 2:23 PM by richarddeeming | Created: Oct 29, 2013 at 2:23 PM by richarddeeming
Consider the following sample application:
static void Main(string args)
Id #34411 | Release:
| Updated: Aug 27, 2013 at 2:35 PM by AlexFilipovici | Created: Aug 27, 2013 at 2:35 PM by AlexFilipovici
Using build 184.108.40.206 loading the attached HTML and requesting the inner text caused the code to throw a StackOverflowException.
HtmlAgilityPack.HtmlDocument doc = new HtmlAgility...
Id #34382 | Release:
| Updated: Aug 19, 2013 at 2:49 PM by mcsig | Created: Aug 19, 2013 at 2:49 PM by mcsig