Quantcast
Channel: htmlagilitypack Forum Rss Feed
Browsing all 655 articles
Browse latest View live

New Post: how to programmatically interact with the web page?

OK, this assembly allows you to read a html web page. Now how to programmatically interact witth the page? ie: how to programmatically click on a submit button that would post a form that I...

View Article


New Post: OptionWriteEmptyNodes break XML declaration

I use HtmlAgilityPack to load HTML and write back, and I set OptionWriteEmptyNodes to true so as to keep the empty node, but if set OptionWriteEmptyNodes to ture, the XML declaration in origial HTML is...

View Article


New Post: How to use htmlagilitypack in Windows Phone 7

Nashville Web Design we’re friendly and make the process of building your Nashville website and designing your SEO and Internet Marketing campaign a pleasant experience. We specialize in providing...

View Article

New Post: Accessing style properties of HTML table

  Hi. I'm trying to screen scrape the results which are displayed in the Search Results table of, for example, this webpage :...

View Article

New Post: Problem selecting within a node

What?! I am having the same issue and that answer doesn't have enough information

View Article


New Post: Create HTML from scratch: how to add a doctype

Hey, With the agility pack, it is easy to build HTML documents from scratch since you easily can add elements and attributes. But how can I add an html doctype to my document via agility pack?   Thank...

View Article

New Post: Unable to load html

I'm trying to use the HTML Agility pack and PowerShell to get data from web-sites. The problem is that after I try to load the html through HtmlDocument.LoadHtml () or HtmlDocument.Load(filename) ,...

View Article

New Post: extract table from HTML and loop through its rows and cells

I want to know what is line and line position means in HAP. How they are related to xpath?

View Article


New Post: Line and Lineposition property in HAP

What is Line and Line position property in HAP? Two nodes having different xpath can have same line so what is the criteria, that nodes can have same line property.

View Article


Image may be NSFW.
Clik here to view.

New Post: extraction of the link name from html page

Hi at all, Can I extract the names of the links on a html page? For exampre between I want insert in an array the words conteined between these two tag: <a> words </a> tanks for any helps...

View Article

New Post: Collection was modified error when removing nodes in v1.4

I'm using a modified version of the ConvertTo method found in HtmlConvert.cs (Html2Txt project that comes with HAP source code) to iterate through the entire HtmlDocument's DocumentNode and manipulate...

View Article

New Post: Collection was modified error when removing nodes in v1.4

Fixed with this code: private void ConvertContentTo(HtmlNode node) { int i = 0; int childNodeCount = node.ChildNodes.Count; while (i < childNodeCount) { ConvertTo(node.ChildNodes[i]); childNodeCount...

View Article

New Post: Problem selecting within a node

I believe I have a similar problem, as demonstrated thus:   <HTML> <HEAD><TITLE> HTML Agility Bug Demo</TITLE></HEAD> <BODY> <table> <tr><td>first...

View Article


New Post: Selecting and without duplication

I want to parse a web page (using HTML Agility Pack) and capture all the text in all div's and p's without duplicating the content.  So I don't want any p's that are contained in div's that I've...

View Article

New Post: Possible to disable HAP correcting any nodes (HTML)?

Sorry if this question has been asked and answered in the past.  Was wondering if it was possible to disable the HAP from correcting any nodes within an HTML document. In my application, I don't care...

View Article


New Post: hopefully simple image url extraction

Hi, love the agility pack, just discovered it recently and still learning about it. I would need some help regarding the url (source) extraction.  Html code: <div class="image_bg"> <img...

View Article

New Post: hopefully simple image url extraction

ok i managed to solve this :)   regards

View Article


New Post: OptionWriteEmptyNodes break XML declaration

anyone know how to resolve this issue?

View Article

New Post: Convert UTF8 to ASCII. How?

I have a UTF8 HTML file that I process with HAP but I really want the resulting HTML to be in 7-bit format, i.e. with UTF8 chars encoded/esacaped (e.g. ø -> &oslash;) but <> and so on...

View Article

New Post: Convert UTF8 to ASCII. How?

I found this solution using Intellisense :) string sevenbit = HtmlEntity.Entitize(utf8string, true, false); This seems to do the trick just nicely. But is it possible to have HAP do this automatically...

View Article
Browsing all 655 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>