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)

70 results in tag: asp.net

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

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

Only replace quote marks in HTML tags using regular expressions.

I have the following string:...<div id="mydiv">This is a "div" with quotation marks</div> ...I want to use regular expressions to return the following:...<div id='mydiv'>This is a "div" with quotation marks</div> ...Notice how the id attribute in the div ...
asp.net c# html-agility-pack regex
asked by Cindyydnic

html agility pack parsing question

I have this simple string:...string testString = "6/21 <span style='font-size: x-small; font-family: Arial'><span style='font-size: 10pt; font-family: Arial'>Just got 78th street</span></span>"; ...how do i use the html agility pack to parse out just the ...
asp.net c# html-agility-pack
asked by Rod

In C#, how do you parse an HTMLDocument?

I want to get the text of an html page using a simple application in c#? If there are nested elements ie.,...<Table> <TR> <TD>**ABC** </TD> <TD>**1** </TD> </TR> <TR> <TD>**XYZ** </TD> <TD>...
asp.net c# html-agility-pack
asked by shamim

How to Apply Getting table value with the HtmlAgilityPack

http://www.dsebd.org/latest_PE_all2_08.php ...i work on asp.net C# web.Above url contain some information ,i need to save them in my database and also need to save then in specified location as xml format.This url contain a table.I want to get this table ...
asp.net html-agility-pack html-helper html-parsing
asked by shamim

Loop over rows and columns with the HTML Agility Pack

How can I loop through table and row that have an attribute id or name to get inner text in deep down in each td cell? I work on asp.net, c#, and the newest html agility package. Please guide. Thank you....An html file have several tables. One of them ...
asp.net c# html-agility-pack
asked by David

Original empty tags are not preserved by HTMLAgilityPack.

If i have some empty tags like this...<td width="15px"/> ...Agility pack fixes them to be like ...<td width="15px"></td> ...Is anything possible to do to override this behavior ?
asp.net c# html-agility-pack
asked by MichaelT

Obtaining the src property from an image tag

I'm using the HAP library to parse HTML: ...http://html-agility-pack.net...I basically just want to retrieve the ...src... value from all the ...img... tags....I've tried several thing but I can't seem to do it!
asp.net c# html-agility-pack
asked by raklos

Get particular node in HTML Agility Pack

Hello i have a problem with my application. I need to pick out a specific text between two nodes....The html page looks like this...<td align="right" width="186">Text1</td> <td align="center" width="51">? - ?</td> <td width="186">Text2</td>` ...I can pick...
asp.net c# html-agility-pack
asked by rickard

How to use HTML Agility Pack to fix badly constructed HTML

I am attempting to replace this god awful collection of regular expressions that is currently used to clean up blocks of poorly formed HTML and stumbled upon the HTML Agility Pack for C#. It looks very powerful but yet, I couldn't find an example of how ...
asp.net c# html html-agility-pack
asked by nokturnal

The HTML Agility Pack eliminates the break tag.

I am creating an HTML document using HTML agility pack. I load a template file then append content to it. All of this works, but when I view the output file it has removed the closing tag from my ...<br/>... tags to look like this ...<br>.... What is caus...
asp.net html-agility-pack vb.net
asked by guanome

HtmlDocument HTML Agility Pack Show All Html?

I am using the following to get a web page which works fine... public static HtmlDocument GetWebPageFromUrl(string url) { var hw = new HtmlWeb(); return hw.Load(url); } ...But how to I spit the entire contents of the HTML out fr...
asp.net c# html-agility-pack
asked by leen3o

HTML agility pack: replace pictures with different text

I need to parse HTML for images and replace those tags with a new tag that just has the text that is contained in the alternate. Can someone show how to do this with both linq and standard usage?...I've using a linq sample now to replace paragraphs. But, ...
asp.net c# html-agility-pack
asked by Curtis White

With HTML Agility Pack for ASP.NET, how can I delete certain components from HTML? (vb)

There seems to be no documentation on the codeplex page and for some reason intellisense doesn't show me available methods or anything at all for htmlagilitypack (for example when I type MyHtmlDocument.DocumentNode. - there is no intellisense to tell me w...
asp.net html-agility-pack vb.net
asked by tsdexter

Creating an htmltable from a table in asp.net vb (htmlagilitypack)

I am trying to grab a html table from a remote page and display the contents of this table in a htmltable on my site. I am using htmlagility pack. So far here is my code:...Imports HtmlAgilityPack Partial Class ContentGrabExperiment Inherits System.We...
asp.net html-agility-pack html-table vb.net web-scraping
asked by Phil

read from buffer/stream by agility html parser

I am trying to alter an HTML page before it renders in a browser using an HTTP module. I tried to implement the agility HTML parser, but it only seems to read from files. ...How can I have it read from a buffer/stream?...public override void Write(byte[]...
asp.net c# html html-agility-pack httpmodule
asked by tdjfdjdj

DocumentNode in HtmlAgilityPack. Shouldn't SelectNodes return null?

I'm trying to scrape content from an example page using the HTML agility pack. The DocumentNode.SelectNodes is returning null for an XPath query when I think it shouldn't. Could someone tell me why? The code is:...HtmlDocument doc = new HtmlDocument(); st...
asp.net c# html-agility-pack parsing xpath
asked by Colin Brown

When parsing with HtmlAgilityPack, remove whitespace and newlines.

I tried to parse HTML with the HtmlAgilityPack in the following way:...HtmlDocument htmlDoc = new HtmlDocument(); htmlDoc.LoadHtml(xhtmlString); ...Unfortunately the xhtmlString contains unnecessary whitespaces and newline characters, so the _text of html...
asp.net c# html-agility-pack trim
asked by magnattic

Using HtmlAgilityPack to parse dl

This is the sample HTML I am trying to parse with Html Agility Pack in ASP.Net (C#)....<div class="content-div"> <dl> <dt> <b><a href="1.html" title="1">1</a></b> </dt> <dd> First Entry</dd> <dt> ...
asp.net c# html-agility-pack screen-scraping
asked by redGREENblue

Page 1 of 4
  • 1
  • 2
  • 3
  • 4
  • ยป

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!