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

Is there a.Net counterpart of XmlReader for HTML?

I've used ...HtmlAgilityPack... in the past to parse HTML in .Net but I don't like the fact that it only uses a DOM model....On large documents and/or those with heavy levels of nesting it is possible to hit stack overflow or out of memory exceptions. Al...
.net html html-agility-pack parsing xmlreader
asked by RobV

htmlagilitypack extracts all form components.

i have this code to extract all form input element in html document. currently, i cant get select, textarea and other elements except input element....Dim htmldoc As HtmlDocument = New HtmlDocument() htmldoc.LoadHtml(txtHtml.Text) Dim roo...
forms html-agility-pack vb.net winforms
asked by Smith

What is the best way to store HtmlDocument to memory? Agility Pack for HTML

I am using HTML Agility Pack to parse and HTML document, make a change to a node, and then save the HTML document. I would like to save the document to memory so I can write the HTML out as a string later in the application. My current implementation alwa...
c# html-agility-pack
asked by Nick

Login using HtmlAgilityPack

I'm trying to login to a site using HtmlAgilityPack (site:...http://html-agility-pack.net...)....Now, I can't exactly figure out how to go about this. ...I've tried setting the Html form values via...m_HtmlDoc.DocumentNode.SelectSingleNode("//input[@name=...
c# html-agility-pack login
asked by Styles

When loading an html page from a web server, HtmlAgilityPACK displays the error "The supplied path's format is not supported."

I am using my local Apache Server and its address is 127.0.0.1 . and i trying to load html page from this server to C# programme using HTML Agility PACk but its showing ...ERROR : The given path's format is not supported.... HtmlAgilityPack.HtmlDocum...
c# html-agility-pack web-applications web-services
asked by panindra

How to use Agility Pack to remove comments from HTML without loosing the DOCTYPE?

I am trying to remove unnecessary content from HTML. Specifically I want to remove comments. I found a pretty good solution (...Grabbing meta-tags and comments using HTML Agility Pack...) however the DOCTYPE is treated as a comment and therefore removed a...
html-agility-pack
asked by desautelsj

How to use Html Agility Pack to timeout a request

I'm making a request to a remote web server that is currently offline (on purpose)....I'd like to figure out the best way to time out the request. Basically if the request runs longer than "X" milliseconds, then exit the request and return a ...null... r...
.net asp.net-mvc-3 c# html-agility-pack timeout
asked by Chase Florell

How to use C# to delete redundant attributes from XML

I am parsing some XML files from a third party provider and unfortunately it's not always well-formed XML as sometimes some elements contain duplicate attributes....I don't have control over the source and I don't know which elements may have duplicate at...
c# html-agility-pack validation xml
asked by Catch22

How do I convert a website into plain text?

I am trying to convert the webpage into a plain text. But if I encountered the table I am getting td and tr tags too. If I replace those table tags then I can't get some of the content....Here is my code...string s = Regex.Replace(htmldoc, "<script.*?</sc...
c# html-agility-pack regex
asked by Ajit Hegde

Using HTML agility pack, comment out all script tags in an HTML page.

I would like to comment out all script tags from an HtmlDocument. This way when I render the document the scripts are not executed however we can still see what was there. Unfortunately, my current approach is failing:...foreach (var scriptTag in htmlDo...
c# comments html-agility-pack
asked by Zugwalt

HtmlDecode and HtmlAgilityPack

I am currently using HtmlAgilityPack with a console application to scrape a website. Since the html is encoded (it returns encoded characters like ...&#039;...) I have to decode before I save the content to my database....Is there a way to decode the retu...
html-agility-pack
asked by Thomas

Replace node with HtmlAgilityPack

I want to replace a node with a new node. How can I get the exact position of the node and do a complete replace?...I've tried the following, but I can't figured out how to get the index of the node or which parent node to call ...ReplaceChild()... on....
c# html-agility-pack
asked by Omar

Using XPath, choose a single node from a node collection using HtmlAgilityPack.

i have been fighting with this code for a few hours now.......Sample Node for results:...<div class="left vcard" sizcache="1" sizset="32"> <h2 class="clearfix fn org url" sizcache="1" sizset="32"> <a id="listItemTitle_11310540" href="/...
html-agility-pack selectsinglenode xpath
asked by Dementic

Grabbing text content using Html Agility Pack

I will try my best to specific. Basically working on a crawler in vb.net whereby I am more interested in extracting text content of the page. My current application downloads the body of the html source in a textbox by using a web browser control as follo...
html html-agility-pack vb.net
asked by KJSR

XPath Help in C# htmlagilitypack

I have this xpath expression that does not work..."//div[child[0]::h4[text()[contains(.,'Dir')]]]/a" ...To parse this html:...<div class="txt"> <h4 class="c1"> Dir </h4> <a href="/name/myname/">Bob</a> </div> ...I am trying to...
c# html-agility-pack xpath
asked by user623879

Inner HTML parsing

This is what I want to parse...<div class="photoBox pB-ms"> <a href="/user_details?userid=ePDZ9HuMGWR7vs3kLfj3Gg"> <img width="100" height="100" alt="Photo of Debbie K." src="http://s3-media2.px.yelpcdn.com/photo/xZab5rpdueTCJJuUiBlauA/ms.jpg"> </a> </div...
c# html-agility-pack html-parsing
asked by Zain Ali

Html Agility Pack extracting inner content from HTML BODY node

Need a bit of help with HTML Agility Pack!...Basically I want to grab ...plain-text... withing the body node of the HTML. So far I have tried this in vb.net and it fails to return the innertext meaning no change is seen, well atleast from what I can see....
c# html html-agility-pack vb.net
asked by KJSR

Return "& aring;" "& ouml;" to their original form.

I'm loading a web page ...System.Net.WebClient.... Page is in ...ISO-8859-1... encoding. If I write it to file and then open, I can see all characters normally....But if I put this content into HtmlAgilityPack and then extract innerText property, I'm get...
c# character-encoding html-agility-pack iso-8859-1
asked by MichaelVerossa

How to parse a FORM from a WebResponse into a WebRequest's POST body

I'm new to this, this is my virgin voyage, the task at hand is to create a transaction in C# that will navigate through a page flow of a web app via WebRequest/WebResponse. I got the Request/Response mechanism working, cookies and all (I can successfully ...
c# html-agility-pack webrequest webresponse web-scraping
asked by Jessica Jones

HtmlAgilityPack immediately closes the form tag.

I am tring to parse an html file with this code:...<div><form>...</div>...</form> ...the problem is that the HtmlAgilityPack automatically close the form tag before the div ending tag: ...<div><form>...</form></div>...</form>... so when I parse the form...
.net html html-agility-pack
asked by ido

Page 10 of 53
  • ««
  • «
  • …
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • »
  • »»

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!