zzz projects Html Agility Pack
Home
Documentation Release Notes 3rd Party Libraries Knowledge Base  Help & Donate
Online Examples
  • Home
  • Documentation
  • Release Notes
  • 3rd Party Libraries
  • Knowledge Base
  • Help & Donate
  • Online Examples
  •   Download  

Html Agility Pack - Knowledge Base (KB)

873 results in tag: c#

html Agility Pack for selecting attribute values

I'm trying to retrieve a specific image from a html document, using html agility pack and this xpath:...//div[@id='topslot']/a/img/@src ...As far as I can see, it finds the src-attribute, but it returns the img-tag. Why is that?...I would expect the Inner...
.net c# html-agility-pack xpath
asked by Vegar

HtmlAgilityPack does not pick childNodes as intended.

I am attempting to use the HtmlAgilityPack library to parse some links in a page, but I am not seeing the results I would expect from the methods. In the following I have a HtmlNodeCollection of links. For each link I want to check if there is an image n...
.net asp.net c# html-agility-pack xpath
asked by Sheff

Parsing li> in HTML Agility Pack

I want to scrape a list of facts from simple website. Each one of the facts is enclosed in a ...<li>... tag. How would I do this using Html Agility Pack? Is there a better approach?...The only things enclosed in ...<li>... tags are the facts and nothing e...
.net c# html-agility-pack html-parsing
asked by Fatal510

Encoding question: How can I export from HtmlAgilityPack to a StringWriter while maintaining the encoding?

I am reading html in with HtmlAgilityPack, editing it, then outputting it to a StreamWriter. The HtmlAgilityPack Encoding is Latin1, and the StreamWriter is UnicdeEncoding....I am losing some characters in the conversion, and I do not want to be....I don...
.net c# encoding html-agility-pack
asked by Alex Baranosky

delete children from html agility pack

I'm having difficulty trying to remove a div with a particular ID, and its children using the HTML Agility pack. I am sure I'm just missing a config option, but its Friday and I'm struggling....The simplified HTML runs:...<html><head></head><body><div i...
c# html-agility-pack
asked by Bob

HtmlAgilityPack is used to parse HTML pages.

Using C# I would like to know how to get the Textbox value (i.e: john) from this sample html script :...<TD class=texte width="50%"> <DIV align=right>Name :<B> </B></DIV></TD> <TD width="50%"><INPUT class=box value=John maxLength=16 size=16 name=user_name...
c# html html-agility-pack
asked by Hassen

Agility Pack for HTML

I'm trying to use HTML Agility Pack to get the description text from inside the:...<meta name="description" content="**this is the text i want to extract and store in a string**" /> ...And someone on Stackoverflow a little while ago suggested I use HTMLAg...
c# html html-agility-pack parsing winforms
asked by jay_t55

Select nodes following a given node in HTML Agility Pack

I asked the question ...in a codeplex discussion... but I hope to get a quicker answer here at stackoverflow....So, I use HTML Agility Pack for HTML parsing in C#. I have the following html structure:...<body> <p class="paragraph">text</p> <p class=...
asp.net c# html html-agility-pack
asked by morsanu

Is there a way to address the issue in HtmlAgilityPack when an html tag isn't closed?

well i have the following problem.... the html i have is malformed and i have problems with selecting nodes using html agility pack when this is the case.... the code is below:...string strHtml = @" <html> <div> <p><strong>Elem_A</strong>String_A1_2...
c# html-agility-pack xpath
asked by Karim

How can I understand this HTML code?

good morning! i am using c# (framework 3.5sp1) and want to parse following piece of html via regex:...<h1>My caption</h1> <p>Here will be some text</p> <hr class="cs" /> <h2 id="x">CaptionX</h2> <p>Some text</p> <hr class="cs" /> <h2 id="x">CaptionX</h2...
c# html html-agility-pack
asked by Andreas Niedermair

Using HTMLAgilityPack, select all p>s from a Node's children.

I've got the following code that I'm using to get a html page. Make the urls absolute and then make the links rel nofollow and open in a new window/tab. My issue is around the adding of the attributes to the ...<a>...s.... string url = "http://www....
c# html-agility-pack screen-scraping
asked by Denis Hoctor

Using HTML Agility Pack to get meta-tags and comments

I've looked for tutorials on using HTML Agility Pack as it seems to do everything I want it to do but it seems that for such a powerful tool there is little noise about it on the Internet....I am writing a simple method that will retrieve any given tag ba...
.net c# html-agility-pack html-parsing
asked by AlexT

Agility Pack for HTML

I want to parse the html table using html agility pack. I want to extract only some predefined column data from the table....But I am new to parsing and html agility pack and I have tried but I don't know how to use the html agility pack for my need....If...
.net c# html-agility-pack html-parsing winforms
asked by Harikrishna

Agility Pack for HTML

I have html tables in one webpage like ...<table border=1> <tr><td>sno</td><td>sname</td></tr> <tr><td>111</td><td>abcde</td></tr> <tr><td>213</td><td>ejkll</td></tr> </table> <table border=1> <tr><td>adress</td><td>phoneno</td><td>note</...
c# html-agility-pack html-parsing winforms
asked by Harikrishna

Html Agility Pack returns all attribute values for a particular tag.

I want to get all values of 'id' attribute of 'span' tag with html agility pack. But instead of attributes I got tags themself. Here's the code ... private static IEnumerable<string> GetAllID() { HtmlDocument sourceDocument = ne...
c# html html-agility-pack xml xpath
asked by StuffHappens

If an HTML file does not include a "/tr" or "/td" tag at the end, HTML Agility Pack will not read it correctly.

I am using HTML Agility Pack to parse html content. I am using parsing to extract table information. It works. But if there is no ending "/tr" tag or "/td" tag then it does not parse that information perfectly.(in which there is no ending tr tag or td tag...
.net c# html-agility-pack parsing winforms
asked by Harikrishna

Using XPath, select all links from an HTML table (and HtmlAgilityPack)

What I am trying to achieve is to extract all links with a href attribute that starts with http://, https:// or /. These links lie within a table (tbody > tr > td etc) with a certain class. I thought I could specify just the the a element without the whol...
c# html-agility-pack xpath
asked by Adam Asham

Which HTML tidy bundle is the best? Is there a way to make an HTML website clean using HTML agility pack?

I am using ...html agility pack... to parse html ...tabular information.... Now there is some html content with missing ending tags and from such page because of missing ending tags html agility pack does not parse information properly.So I want to insert...
c# html-agility-pack html-parsing htmltidy winforms
asked by Harikrishna

Screen Scraping XPATH in HTML Agility Pack isn't delivering data.

I'm attempting to write a screen scraper for Digikey that will allow our company to keep accurate track of pricing, part availability and product replacements when a part is discontinued. There seems to be a discrepancy between the XPATH that I'm seeing ...
c# html-agility-pack screen-scraping web-scraping
asked by Matthias

Using HtmlAgilityPack to pick Divs by class from an HTML page

I am using C# with HtmlAgilityPack and I can select divs that have an id of foo...var foos = from foo in htmlDoc.DocumentNode.Descendants("div") where foo.Id == "foo" select foo; ...but how do I select div's with a class of bar?
c# html html-agility-pack
asked by Nicholas Murray

Page 1 of 44
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • »
  • »»

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!