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)

22 results in tag: dom

Is there a C# object that provides for simple HTML DOM management?

If I have a string that contains the html from a page I just got returned from an HTTP Post, how can I turn that into something that will let me easily traverse the DOM?...I figured HtmlDocument object would make sense, but it has no constructor. Are ther...
c# dom dom-manipulation html-agility-pack
asked by Matt

How can I use HtmlAgilityPack to add link or meta tags to the head?

The ...link... to download documentation from ...http://htmlagilitypack.codeplex.com... is returning an error and I can't figure this out by trying the code....I'm trying to insert various tags into the ...<head>... section of a HtmlDocument that I've loa...
asp.net-mvc c# dom html html-agility-pack
asked by DaveDev

XPath to extract content?

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

Cookies from HtmlAgilityPack.HtmlDocument

This pertains to cookies set inside a script (maybe inside a script tag)....System.Windows.Forms.HtmlDocument... executes those scripts and the cookies set (like ...document.cookie=etc......) can be retrieved through its ...Cookies... property. ...I assum...
cookies dom html-agility-pack javascript
asked by Jojo

How to use the HtmlAgility bundle to construct an HTML page from scratch.

I just wanted to create my own simple document using the agility pack so create a new HtmlDocument that contains just the basic container elements - i.e....<html><head></head><body></body></html> ...How can I do this from scratch without actually loading ...
.net dom html-agility-pack
asked by Pittfall

Is it possible to use HTMLAgilityPack to replace html nodes with text nodes?

I would like to use HTMLAgility pack to replace a node within the document with a text node. The purpose of this is to remove tags surrounding the node itself. Currently, I do something like this:...//This code fixes redundant HTML formatting tags //Thi...
c# dom html html-agility-pack
asked by Arthur Edmunds

C# - Using HTMLAgilityPack to convert a Node to String

I am trying to convert a selected span tag's inner text to a string....<span id="course-text">ELEC1700/ELEC1700 2012 S1: Computer Engineering 1</span> ...So the above would become: "ELEC1700/ELEC1700 2012 S1: Computer Engineering 1"...I have tried a coupl...
c# dom html-agility-pack selectsinglenode
asked by cheeseman

remove html node from htmldocument :HTMLAgilityPack

In my code, I want to remove the img tag which doesn't have src value. I am using ...HTMLAgilitypack's HtmlDocument... object. I am finding the img which doesn't have src value and trying to remove it.. but it gives me error Collection was mod...
c# collections dom html-agility-pack iteration
asked by Priya

C#: find HTML attribute and replace value using HTMLAgilityPack

Hi I am experimenting how to use HTMLAgilityPack Vs using Regex (Not sure which is more Expensive). My question id with HTMLAgilityPack I am able to extract the required attribute and replace it with a new one; however, I cant seems to update the original...
dom html html-agility-pack
asked by user778930

How to get text between two div tags with some class attribute with HTMLagility

I want to get some text from two html div from HTML file. After some searches i decided to use HTMLAgility Pack for doing this. I wrote this code : ... HtmlDocument doc = new HtmlDocument(); doc.LoadHtml(result); HtmlNode node = doc.DocumentNod...
c# dom html html-agility-pack selector
asked by Saman Gholami

html to c# object, recursive function?

I'm trying to convert a html document to c# object. I have a example list of names in an ordered list as below. I am using Html Agility Pack....<ol> <li>Heather</li> <li>Channing</li> <li>Briana</li> <li>Amber</li> <li>Sabrina</li> ...
c# dom html html-agility-pack object
asked by Abu Ragneesh

With HtmlAgilityPack, verify that element on webpage exists

Let's say I'm on ...http://google.com..., and I want to verify that there is an element with ...id="hplogo"... that exists on the page (which there is, it's the Google logo)....I want to use HtmlAgilityPack, so I write something like this:... HtmlAgili...
c# dom html-agility-pack
asked by sir_thursday

HTML Agility Pack - Issue selecting an HTML select tag with the option tags within

I am using HTML Agility Pack to select an element and return that element and everything it contains from an html string that is loaded. In testing my code, I ran it against the select tag example from w3schools:...<select name="cars"> <option value="v...
.net c# dom html-agility-pack
asked by Jon H

How to fix html tags(which is missing the <open> & <close> tags) with HTMLAgilityPack

I have an html with ...<div><h1> hello Hi</div> <div>hi </p></div>...Required Output : ...<div><h1> hello </h1></div> <div><p>hi </p></div>...Using HTML agility pack is it possible to fix this kind of similar issues with missing closing and opening tags?
c# dom html-agility-pack
asked by ragmn

how to loop through each node of HTML using HTMLAgilitypack and delete certain nodes?

I need to identify each node and delete certain nodes like ...P..., ...legend... ect.. Need to loop through following html using HTMLAgilityPack,...<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><META content="IE=5.0000" http-e...
c# dom html-agility-pack
asked by ragmn

Splitting HTML string into two parts with HtmlAgilityPack

I'm looking for the best way to split an HTML document over some tag in C# using HtmlAgilityPack. I want to preserve the intended markup as I'm doing the split. Here is an example....If the document is like this:...<p> <div> <p> Stuff </p>...
c# dom html html-agility-pack parsing
asked by Greg R

Build HTMLDocument from string of HTML

I would like to build a HTMLDocument from a string of HTML. ...I already have a large amount of code that parses and uses the HTMLDocument, so I don't want to turn back now. But now I've gone back and used HTMLAgilityPack to get the HTML instead of a WebB...
.net c# dom html-agility-pack
asked by user1279569

Select all DOM elements with HTMLAgilityPack

I have been looking at similar questions and searching on-line but I cannot seem to find a a solution. What I am trying to do is select all the DOM elements in order ( etc.) and then put them into an arraylist or something. ...currently I have...public vo...
.net c# dom html html-agility-pack
asked by arcadeRob

Webbrowser GetElementsByTagName looping within that tag area

I have a been trying to figure out how to go about doing this for some time now. I am wanting to find the form classname of "live_" ...which i can do just fine with the below code... but i am unsure how to go about getting a ...text value within that form...
dom getelementsbytagname html-agility-pack vb.net webbrowser-control
asked by StealthRT

Determine the htmlnode name/type (eg li)

How does one know if the ...HtmlNode... I'm working with is an ...<li>...? I know the ...NodeType... is an ...Element... but how do you determine if that is an ...<li>...Let me know if there's any more information you need.
c# dom html-agility-pack
asked by shadonar

Page 1 of 2
  • 1
  • 2
  • ยป

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!