Most voted "html-agility-pack" questions
HTML Agility Pack (HAP) is an agile parser built to read and write DOM, XPATH or XSLT (no knowledge of XPATH or XSLT is required). With this . NET library you can handle offline HTML files similar to System.xml. Use this tag only if the question refers to the use of this library.
Learn more…17 questions
Sort by count of
-
5
votes1
answer216
viewsYield does not return data
When calling the method, an HTML component enumerable should be returned. I’m using the HTML Agility Pack to read an HTML file. The same method works as expected when removing the yield and add…
-
3
votes2
answers544
viewsGrab custom tags with Html Agility Pack
I’m using the plugin Html Agility Pack to manipulate html And I would like him to capture my elements that use tag customized I tried it this way: HtmlDocument html = new HtmlDocument();…
-
3
votes1
answer63
viewsNullreferenceexception using Htmlagilitypack
I wonder how many tags <a> exist within a div, but the Exception NullReferenceException is fired when arriving on Xpath. var baseURL = "AQUI VAI A MINHA URL"; var client = new HtmlWeb(); var…
c# .net exception html-agility-pack nullpointerexceptionasked 8 years, 5 months ago Gabriel Bernardone 563 -
3
votes2
answers703
viewsError reading html page with Html Agility Pack
I’m reading an HTML page using Html Agility Pack. I run the code on my laptop and it works perfectly. The problem is when I run it on Windows Phone 7.1. Accented characters (ç) are encoded. And the…
-
2
votes0
answers53
viewsImport HTML to Datagridview [C#]
I’m working for the first time with HtmlAgilityPack for reading an HTML file that I’m manipulating. The idea is to take certain data from this file and insert it into the respective columns of my…
-
1
votes1
answer218
viewsElement <Strong> returning empty - Htmlagilitypack
I’m trying to get the contents of an Strong text from the submarine site. When I open the website with browser I can see in the code the content however, using Htmlagilitypack the content returns…
-
1
votes1
answer516
viewsTaking table elements with htmlagilitypack
I have this structure rethought over and over again. 1st Table <table> <tbody> <tr> <th>titulo</th> </tr> </tbody> </table> 2nd Table <table>…
-
1
votes0
answers1486
viewsExtract HTML from Inspect Widget
Using Htmlagilitypack, I use the following code to get the HTML of a website: var url = "teste.com"; var web = new HtmlWeb(); var doc = web.Load(url); However the data (a table) I want to extract…
-
1
votes1
answer535
viewsCapture results using Htmlagilitypack
I’m using this code to get results using the Html Agility Pack. This is how it is: WebRequest request = WebRequest.Create(texto); WebResponse response = request.GetResponse(); StreamReader reader =…
-
1
votes0
answers521
viewsAutomate website browsing for software testing activities
I’m on a web systems development project, accessed by the browser. We are constantly making modifications in the operation of the processes and at each specific period we perform a test on the…
-
0
votes1
answer44
viewsHtmlagilitypack - Does not format correctly
In my webservice I need to always format the HTML I receive. To make sure it gets properly formatted I use the Htmlagilitypack. HTML I receive: <p> <div> <b>text:</b> <img…
-
0
votes1
answer359
viewsRead html file and get the value of a selected select
I am reading an html file and need to get the value of value of select user selected, how to do ? HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); var select =…
-
0
votes1
answer223
viewsHow to get information from a tr in HTML code using Htmlagilitypack from Visual Studio
Good night, I’m doing a C# project at Visualstudio 2019 using Htmlagillypack to capture site information https://www.infomoney.com.br/cotacoes/ibovespa/ which contains the values of the stock…
-
0
votes1
answer117
viewsUse of the Htmlagilitypack library in C# code for variable value acquisition
Good afternoon Galera! Good people, I’m new here at Stackoverflow and this is my first post so please forgive me if I make any mistakes. I’m doing a C# program to take a picture of each person…
-
0
votes1
answer30
viewsTransform each site’s Node into an array element
I want to turn every headline on this site into an element of an array. I’ve tried several ways but none of them work, so if you could help me, I’d be grateful. I am using Htmlagilitypack using…
-
-1
votes1
answer81
viewsHow to return the value of the element using Xpath?
I’m doing a job for the college where I need to return the titles of the news site G1 - World. I am using Htmlagilitypack. As an example, the first news of the site appears in this code snippet…
-
-1
votes1
answer164
viewsHtml Agility Pack C#
I’d like to know how the // in the Html Agility Pack. Well, the doubt is the following, code: var t = htmlDoc.DocumentNode.SelectNodes("//table[@class='" + attr +…