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

proper xpath html nested tables agility pack

Assuming nested tables don't have unique attributes ( id , class or anything else ) to get the required one via ...doc.DocumentNode.SelectSingleNode("//table[@width='500']") ...Does XPath prohibit using table several times in its path ?...foreach (Html...
html html-agility-pack xpath
asked by MicMit

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

How can I get all the photos from a website using HTML Agility Pack?

I just downloaded the HTMLAgilityPack and the documentation doesn't have any examples....I'm looking for a way to download all the images from a website. The address strings, not the physical image....<img src="blabalbalbal.jpeg" /> ...I need to pull the ...
c# html-agility-pack parsing
asked by Sergio Tapia

What is the best way to utilize HTMLAgilityPack AppendNode?

Got a real headache at this stage on a Friday! I'm trying to add a HtmlNode to another using InsertAfter(). I can see the refChild node with id of breadcrumbs when I rpint it to the console but keep getting the following error:...System.ArgumentOutOfRange...
c# html-agility-pack screen-scraping
asked by Denis Hoctor

With HtmlAgility Pack, how would I retrieve the inputs from a specific form? C#.net is the programming language.

Code can explain this problem much better than I can. I have also included alternate ways i've tried to do this. If possible, please explain why these other methods didn't work either. I've ran out of ideas, and sadly there aren't many examples for HtmlAg...
html-agility-pack html-parsing
asked by codygman

HTML Agility Pack, C#, parsing HTML page

Following this example, I can find the LI sections....Html Agility Pack - Parsing <li>...However, I only want the LI items that reside inside the div with an id of "res"....How do I do that?
c# html html-agility-pack
asked by Eric Burdo

XPath "previously following siblings"

I'm trying to select elements (a) with XPath 1.0 (or possibly could be with Regex) that are following siblings of particular element (b) but only preceed another b element....<img><b>First</b><br>&nbsp;&nbsp; <img>&nbsp;&nbsp;<a href="/first-href">First H...
html-agility-pack xpath
asked by Ondrej Stastny

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

How to use HtmlAgilityPack to obtain all input items in a form without receiving a null reference error

Example HTML:... <html><body> <form id="form1"> <input name="foo1" value="bar1" /> <!-- Other elements --> </form> <form id="form2"> <input name="foo2" value="bar2" /> <!-- Other elements --> </form> </b...
c# html html-agility-pack parsing
asked by Bill Li

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

The HTMLAgilityPack ChildNodes index is functional, but the named node is not.

I am parsing an XML API response with HTMLAgilityPack. I am able to select the result items from the API call. Then I loop through the items and want to write the ChildNodes to a table. When I select ChildNodes by saying something like:...sItemId = dnIt...
html-agility-pack selectsinglenode
asked by Mark Stouffer

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

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 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

Page 2 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
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!