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)

271 results for: in tag: html

HtmlAgilityPack Drops Option End Tags

I am using HtmlAgilityPack. I create an HtmlDocument and LoadHtml with the following string:...<select id="foo_Bar" name="foo.Bar"><option selected="selected" value="1">One</option><option value="2">Two</option></select> ...This does some unexpected thin...
html html-agility-pack parsing
asked by Tim Scott

HTML Agility pack - parsing tables

I want to use the HTML agility pack to parse tables from complex web pages, but I am somehow lost in the object model....I looked at the link example, but did not find any table data this way. Can I use XPath to get the tables? I am basically lost after h...
c# html html-agility-pack html-parsing
asked by weismat

How to use HTML Agility pack

How do I use the ...HTML Agility Pack...?...My XHTML document is not completely valid. That's why I wanted to use it. How do I use it in my project? My project is in C#.
c# html html-agility-pack
asked by chh

Is the Html Agility Pack still the best .NET HTML parser?

Html Agility Pack... was given as the answer to a ...StackOverflow question... some time ago, is it still the best option? What other options should be considered? Is there something more lightweight?
.net c# html html-agility-pack parsing
asked by Ian Ringrose

Encoding error when using HTML Agility Pack

I'm trying to parse a html doc using some code I found from this actual site but I keep getting a parsing error...HtmlAgilityPack.HtmlDocument htmlDoc = new HtmlAgilityPack.HtmlDocument(); // There are various options, set as needed htmlD...
c# html html-agility-pack parsing
asked by Lilz

Parsing HTML page with HtmlAgilityPack

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

Clean HTML using C#

How do I repair malformed HTML using C#? A great answer would be an HTML Agility Pack sample!...I'm scraping a site (for legitimate use). The site's HTML is OK but there are some annoying problems....One way I could go would be through regular expressions...
html html-agility-pack malformed screen-scraping
asked by Avi

HTML Agility Pack - Get Page Summary

How would I use the HTML Agility Pack to get the First Paragraph of text from the body of an HTML file. I'm building a DIGG style link submission tool, and want to get the title and the first paragraph of text. Title is easy, any suggestions for how I m...
html html-agility-pack parsing
asked by reach4thelasers

html nested tables agility pack valid xpath

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

HTML Agility Pack

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

HTML Agility Pack - Select nodes after specific node

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

How to parse this piece of HTML?

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

C#, parsing HTML page, using HTML Agility Pack

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

How to get all input elements in a form with HtmlAgilityPack without getting 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

Get all attribute values of given tag with Html Agility Pack

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

Parsing HTML page with HtmlAgilityPack to select Divs by class

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

XPATH query, HtmlAgilityPack and Extracting Text

I had been trying to extract links from a class called "tim_new" . I have been given a solution as well....Both the solution, snippet and necessary information is given ...here...The said XPATH query was ..."//a[@class='tim_new']..., my question is, how d...
c# html html-agility-pack xpath
asked by Soham

Stripping all html tags with Html Agility Pack

I have a html string like this:...<html><body><p>foo <a href='http://www.example.com'>bar</a> baz</p></body></html> ...I wish to strip all html tags so that the resulting string becomes:...foo bar baz ...From another post here at SO I've come up with this...
html html-agility-pack strip vb.net
asked by Muleskinner

Exception while querying HTML for ID using HTML Agility Pack

I'm using the HTML Agility pack to parse an ASPX file inside Visual Studio....I'm searching for an element with a specified ID attribute....The code I'm using is:...var html = new HtmlAgilityPack.HtmlDocument(); html.LoadHtml(docText); if (html.DocumentNo...
html html-agility-pack parsing xpath
asked by awj

HTML Agility Pack Fix <li> list order

I have been trying to use the HTML Agility Pack to parse HTML into valid XHTML to go into a larger XML file. This for the most part works however lists become formatted like:...<ul> <li>item1 <li>item2 </li></li> </ul> ...As oppose to what I w...
.net c# html html-agility-pack
asked by PeteT

Page 1 of 14
  • 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