zzz projects Html Agility Pack
Documentation Release Notes
3rd Party Libraries Knowledge Base Online Examples  GitHub
  • Documentation
  • Release Notes
  • 3rd Party Libraries
  • Knowledge Base
  • Online Examples
  •  GitHub
  •   Download  

Html Agility Pack - Knowledge Base (KB)

1054 results for:

XPath syntax to extract URL from HTMLNode using HTMLAgilityPack?

What is the proper ...XPath... syntax to grab the value of the ...href... attribute from the following ...HTMLNode...:...<a target="_blank" class="monkeys" href="http://someurl.com" id="123"> <span class="title">Monkeys are flying all over!</span> </a...
c# html-agility-pack xpath
asked by Darth Continent

XPath Expression not working in HtmlAgilityPack

I know it may be of my noobness in XPath, but let me ask to make sure, cuz I've googled enough....I have a website and wanna get the news headings from it: www.farsnews.com (it is Persian)...Using FireBug and FireXpath extensions under firefox and by hand...
c# html-agility-pack xpath
asked by user433556

Alternatives to HtmlAgilityPack?

I don't like some of the design decisions made in HtmlAgilityPack:...When using ...SelectNodes..., if no nodes are found, it returns ...null... rather than an empty set, so you can't just ...foreach... over it without a null check....When trying to select...
c# html-agility-pack
asked by mpen

Xpath preceding-sibling (using HtmlAgilityPack and VB)

Im using HtmlAgilityPack/HAP so that I can use Xpath with HTML documents....I need help selecting the preceding-sibling of ...div class="address"... in this url: ...www.yellowpages.ca/search/si-geo/1/sh/Ottawa,+ON... The sibling that I want is ...h3 class...
html-agility-pack vb.net xpath
asked by Datadayne

Get links from webpage to textbox (vb.net + html agility pack)

Im making a vb.net app and im using htmlagilitypack. I need hap to get the profile links from yellowpages.ca...Here is an example of the html:...<a href="/bus/Ontario/Brampton/A-Safe-Self-Storage/17142.html?what=af&amp;where=Ontario&amp;le=1238793c7aa%7Cc...
html-agility-pack screen-scraping vb.net
asked by Infodayne

C# HTMLAgilityPack HTML to Text - Parse Errors

I need to extract text from an HTML file using C#. I am trying to use HTMLAgilityPack but I am seeing some parse errors (tags not closed). I am using these two options:... htmlDoc.OptionFixNestedTags = true; htmlDoc.OptionAutoCloseOnEnd = ...
c# html-agility-pack html-parsing
asked by tvr

C# Parsing hidden fields with the HTML Agility Pack

I need to write an application for a friends site which parses hidden fields. I've downloaded the Html Agility Pack library, but I'm kinda confused because there are not really any examples. The HTML field looks like this:...<input type = "hidden" autocom...
c# hidden-fields html html-agility-pack parsing
asked by htmlfoo

How to select node types which are HtmlNodeType.Comment using HTMLAgilityPack

I wish to remove from html things like...<!--[if gte mso 9]> ... <![endif]--> <!--[if gte mso 10]> ... <![endif]--> ...How to do this in C# using HTMLAgilityPack?...I'm using...static void RemoveTag(HtmlNode node, string tag) { var n...
c# html-agility-pack
asked by bcm

C# Html Agility Pack ( SelectSingleNode )

I'm trying to parse this field, but can't get it to work. Current attempt:...var name = doc.DocumentNode.SelectSingleNode("//*[@id='my_name']").InnerHtml; <h1 class="bla" id="my_name">namehere</h1> ...Error: Object reference not set to an instance of an...
c# html html-agility-pack parsing
asked by josh

Set InnerText with HtmlAgilityPack

I've tried to set InnerText using the following, but I'm not allowed to set the InnerText property:...node.InnerText = node.InnerText.Remove(100) + ".."; ...The reason for this is that I only want to remove text, not actual elements:...<div> Lorem ip...
c# html-agility-pack text
asked by Andreas

Html Agility Pack: Find Comment Node

I am scraping a website that uses Javascript to dynamically populate the content of a website with the Html Agility pack....Basically, I was searching for the XPATH ..."\\div[@class='PricingInfo']"..., but that div node was being written to the DOM via Ja...
c# html html-agility-pack web-scraping xpath
asked by Abe

How to get html elements with multiple css classes

I know how to get a list of DIVs of the same css class e.g...<div class="class1">1</div> <div class="class1">2</div> ...using xpath ...//div[@class='class1']...But how if a div have multiple classes, e.g ...<div class="class1 class2">1</div> ...What will ...
html-agility-pack
asked by seasong

How to get HTML text between H1 tags in C#

I need to parse an HTML document to extract all the H1 tags and all HTML between them. I have been playing with HtmlAgilityPack to achieve this with some success. I could extract all H1 tags using:...foreach (HtmlNode node in doc.DocumentNode.SelectNodes(...
c# html html-agility-pack
asked by silverspoon

Extract content with XPath?

I have html content that I am storing as an XML document (using HTML Agility Pack). I know some XPath, but I am not able to zero into the exact content I need....In my example below, I am trying to extract the "src" and "alt" text from the large image. Th...
c# dom html-agility-pack xml xpath
asked by TruMan1

Html Agility Pack help

I'm trying to scrape some information from a website but can't find a solution that works for me. Every code I read on the Internet generates at least one error for me....Even the example code at their homepage generates errors for me....My code:... ...
c# html-agility-pack
asked by Victor Bjelkholm

Getting the text from a node using HtmlAgilityPack

I have the following HTML:...<div class="top"> <p>Blah.</p> I want <em>this</em> text. </div> ...What is the XPath notation to extract the string "...I want <em>this</em> text...."? EDIT: I don't necessarily want a single XPath expression to extra...
c# html-agility-pack xpath
asked by grautur

Parse HTML doc with HtmlAgilityPack-Xpath, RegExp

I try parse image url from html with HtmlAgilityPack. In html doc I have img tag :...<a class="css_foto" href="" title="Fotka: MyKe015"> <span> <img src="http://213.215.107.125/fotky/1358/93/v_13589304.jpg?v=6" width="176" height="21...
html-agility-pack xpath
asked by Tom

HtmlAgilityPack HasAttribute?

All I want to do is...node.Attributes["class"].Value ...But if the node doesn't have the ...class... attribute, it crashes. So, I have to check for its existence first, right? How do I do that? ...Attributes... is not a dict (its a list that contains an i...
c# html-agility-pack
asked by mpen

HTMLAgilityPack get AJAX value

I am trying to get the value of a timer using the HtmlAgilityPack however when I get the innerText by the element ID it returns --:--:--...Is there any way to get the time value since it uses AJAX?
ajax asp.net-ajax html-agility-pack
asked by rbur0425

Xpath for selecting html id including random number

Hi how would I select all link when they have the following id....<a id="List_ctl01_link3" class="content" href=link1.aspx"> <a id="List_ctl02_link3" class="content" href=link2.aspx"> <a id="List_ctl03_link3" class="content" href=link3.aspx"> <a id="List_...
html html-agility-pack xpath
asked by gulbaek

Page 5 of 53
  • «
  • 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