New Post: HTML and MemoryStream
Doesn't the next line save the contents of the HTMLDocument into "htmlStream"? Right now, I am just looking for an answer for my own knowledge, as I have already resolved my bigger issue, using an...
View ArticleNew Post: Using HAP with multiple threads.
Hi, I have noticed that there is no way to use HAP with multiple threads, since I need to have different HtmlNode.ElementFlags loaded for each thread, because every thread will be parsing a different...
View ArticleNew Post: extracting all forms from an html page with all their inputs using...
hi How can I get all the forms from a page using HtmlAgilityPack with all their input fields. I have the following code:Try Dim Web As New System.Net.WebClient Dim htdoc As New...
View ArticleNew Post: Retrieve and tags which in div in div.
var lnks = document.DocumentNode.SelectNodes("//ul[@class='linkNewsList']//li//a"); //.Where(node => !nodesToExclude1.Contains(node) && node.Attributes["target"].Value.Contains("_blank"))...
View ArticleNew Post: Cant install via NuGet - Corrupt data
When I try to install via NuGet I get this error:PM> Install-Package HtmlAgilityPack Install-Package : File contains corrupted data. At line:1 char:1 + Install-Package HtmlAgilityPack +...
View ArticleNew Post: Visual Studio Debugger Visualizer for HAP
I've just finished the first version of a Visual Studio Debugger Visualizer for the Html Agility Pack. It allows to browse the DOM / Nodes while debugging. XPath expressions can be evaluated during the...
View ArticleNew Post: Retreive ul, li tag which have not class of name.
string id="1-1"; public async void ExampLoad(string id) { var httpClient = new HttpClient(); string srtHtml = await...
View ArticleNew Post: Cant install via NuGet - Corrupt data
Solved it with the help of kaufmed on Experts Exchange. The issue was firstly Windows 8 and secondly that I had not updated the NuGet installation. Once I had done this it installed fine.
View ArticleNew Post: Html Agility Pack - Help Skipping Table
I have a small function that removes extra spaces, tabs, new lines, line breaks from a piece of html. One of the pages that gets processed by this code, contains an HTML table, that I need to skip one...
View ArticleNew Post: Html Agility Pack - Help Skipping Table
I think that an easy way I can do this is by finding out if the table exists in the htmlodoc how can this be done?
View ArticleNew Post: Could not load file or assembly 'HTMLAgilityPack
I'm getting the following error message after installing the HTML Agility Pack using the NuGet package manager: Could not load file or assembly 'HTMLAgilityPack, Version 1.4.6.0, ... I installed the...
View ArticleNew Post: Is there an easy way to convert from HtmlNode to XDocument or...
I want to take the object I get from HtmlAgilityPack and convert it directly into xml. Is there an easy way to do this?
View ArticleNew Post: Visual Studio Debugger Visualizer for HAP
Hello, I've just been using this and found it very helpful for resolving an issue I was having where the HAP tree didn't mirror what I was expecting... many thanks for posting this visualizer! (And a...
View ArticleNew Post: How to get name into class of div by htmlagilitypack?
I want to get text into class it like "pos-4275...". Definitely, The html agility pack on universal(not silverlight). var httpClient = new HttpClient(); string strhtml = await...
View ArticleNew Post: Controlling parsing of < in element text
Hi, Have been using htmlagility pack for a while now, spotted a problem with badly formatted html, for example:<td>Test for people aged > 18 and < 65</td> HtmlAgaility pack fixes this...
View ArticleNew Post: HTML5 support
It also fails with non-self-closing tags (which is valid in HTML5) E.g. it converts:<audio controls=""> <source src="my.mp3" type="audio/mpeg"> </audio> to:<audio controls="">...
View ArticleNew Post: How do that to get content as photos by html agility pack?
f (sense_list_item != null) { foreach (var node2 in sense_list_item) { var orth = node2.Descendants("span").ToList().FindAll(x => x.GetAttributeValue("class", "").Contains("orth")); var...
View Article