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)

1054 results

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

Wildcards and Xpath

I have tried several combinations without success. The full xpath to that data is ....//*[@id='detail_row_seek_37878']/td... The problem is the number portion '37878' changes for each node and thus I can't use a foreach to loop through the nodes. Is th...
c# html-agility-pack html-parsing screen-scraping xpath
asked by JRB

Is it possible to use a wildcard or a string that "contains" in a switch case? caution: lengthy

Being new to programming I read a lot of sample code and try to hack things together in an attempt to learn what works. I am working with html agility pack trying to scrap a news webpage. ...Problem: One of the nodes that I am testing does not use a stati...
c# html-agility-pack html-parsing screen-scraping
asked by JRB

Question about HTML Agility Pack (Attempting to parse string from source)

I am attempting to use the Agility pack to parse certain bits of info from various pages. I am kind of worried that using this might be overkill for what I need, if that is case feel free to let me know. Anyway, I am attempting to parse a page from motley...
c# html html-agility-pack html-parsing
asked by PFranchise

VB.net HTML AgilityPack is used to parse links and tables.

I'm trying to do some screen scraping, and discovered the HTML AgilityPack, but am having some trouble figuring out how to use it with VB.net....The first thing I want to do is find the URL string for an HREF tag if I know the text that is enclosed in the...
.net html-agility-pack vb.net
asked by Avi

HtmlAgilityPack How to obtain select> and option> in HtmlNode tag

I am using HtmlAgilityPack HtmlNode and i want to get...<select> and <option> and all other html tags. ...Currently HtmlNode parse only html, table, div,... tags. How can i get option and select tag too....My current code:...if (htmlContent != null) { ...
c# html-agility-pack
asked by senzacionale

Parsing Upper and Lower Case Tags in HTML Agility Pack?

I am using the HTML Agility Pack to great effect, and am really impressed with it - However, I am selecting content like so...doc.DocumentNode.SelectSingleNode("//body").InnerHtml ...How to I deal with the following situation, with different documents?...
c# html html-agility-pack html-parsing
asked by leen3o

Null Reference in HTML Agility Pack

I've got some trouble with the HTML Agility Pack....I get a null reference exception when I use this method on HTML not containing the specific node. It worked at first, but then it stopped working. This is only a snippet and there are about 10 more forea...
c# html-agility-pack
asked by tohereknowswhen

How can I take just the text from an HTML page?

I have a requirement to extract all the text that is present in the ...<body>... of the html. Sample Html input :-...<html> <title>title</title> <body> <h1> This is a big title.</h1> How are doing you? <h3> I am fi...
c# html-agility-pack
asked by TCM

Using HtmlAgilityPack, remove attributes.

I'm trying to create a code snippet to remove all ...style... attributes regardless of tag using ...HtmlAgilityPack.......Here's my code:...var elements = htmlDoc.DocumentNode.SelectNodes("//*"); if (elements!=null) { foreach (var element in elements...
html html-agility-pack html-parsing
asked by Ted Nyberg

For this example, how can I extract text from HTML using htmlagilitypack?

I wanna extract the text from a HTML source. I'm trying with c# and htmlagilitypack dll....The source is:...<table> <tr> <td class="title"> <a onclick="func1">Here 2</a> </td> <td class="arrow"> <img src="src1" width="9" height="...
c# html-agility-pack html-content-extraction linq xpath
asked by bigbada

HTMLAgilityPack and load timeouts

I'm using HTMLAgilityPack in a parser that I have up on a server, but I'm having issues with one of the websites that I'm parsing: Every day around 6am they tend to shut down their servers for maintenance, which throws off the Load() method for HTMLWeb, a...
.net c# html-agility-pack vb.net
asked by Rob

HtmlAgility tag replacement

I'm trying to replace all of my ...h1... tags with ...h2... tags and I'm using HtmlAgility pack....I did this:...var headers = doc.DocumentNode.SelectNodes("//h1"); if (headers != null) { foreach (HtmlNode item in headers) { //item.Replace...
html-agility-pack
asked by Mr. Etkin

How to produce indented HTML using HtmlAgilityPack?

So, I am generating html using HtmlAgilityPack and it's working perfectly, but html text is not indented. I can get indented XML however, but I need HTML. Is there a way?...HtmlDocument doc = new HtmlDocument(); // gen html HtmlNode table = doc.CreateEle...
c# html-agility-pack html-generation
asked by Petr Abdulin

With the html agility pack, can I access the innertext of 2nd TR's 2nd TD?

i want to access in c#, innertext of 2nd TR's 2nd TD, i.e. john paul and 30 with html agility pack?...<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableClass"> <form name="form1" action="goto.php" method="post"> <tr> ...
c# html html-agility-pack
asked by asif ali

Using HTML Agility Pack to solve an XPath query problem

I'm trying to scrape the price field from ...this website... using the HTML Agility Pack....My code is as follows;...var web = new HtmlWeb(); var doc = web.Load(String.Format(overClockersURL, componentID)); var priceContent = doc.DocumentNode.SelectSingle...
c# html-agility-pack xpath
asked by Christopher McAtackney

Xpath is used to select table data.

i used to select table with class name "list". I use this xpath query to select node in Htmlagilitypack ...//table[@class="list"]/td/a[@href] ...but couldn't get correct output. What's wrong with my xpath code block?...This is the table that i want to gra...
html html-agility-pack xpath
asked by Gayan

How can I attach an element to the top of the Head element in HTML Agility Pack?

I'm trying to use HTML Agility Pack to append a script element into the top of the HEAD section of my html. The examples I have seen so far just use the ...AppendChild(element)... method to accomplish this. I need the script that I am appending to the hea...
.net asp.net-mvc-2 c# html-agility-pack
asked by Nick

How to pick a node's innerhtml in XSL

I have following html snippet:...<div class="rsw-pp rsw-pp-widget"> <div g:type="AverageStarRating" g:secondaryurls="http://maps.google.com/?cid=12948004443906002997" g:decorateusingsecondary="http://maps.google.com/?cid=12948004443906002997" g:groups="...
html-agility-pack xpath xslt
asked by Jin Ho

XPath to HtmlAgilityPack re:test() (get all p tags with matched regex internal)

I want all ...<p>=.+=</p>... tags. The Regex works on its own, without the ...<p>... tags....Here's my XPath: ..."//p[re:test(.,'^=.+=$', 'i')]"...But I'm getting an exception when I plug it into, ...HtmlNodeCollection pNodes = htmlDoc.DocumentNode.Selec...
c# html html-agility-pack xpath
asked by Chuck Savage

Page 8 of 53
  • ««
  • «
  • …
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • …
  • »
  • »»

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!