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 in tag: html-agility-pack

How do you use the HTML Agility Pack to htmlencode?

Has anyone done this? Basically, I want to use the html by keeping basic tags such as h1, h2, em, etc; clean all non http addresses in the img and a tags; and HTMLEncode every other tag. ...I'm stuck at the HTML Encoding part. I know to remove a node y...
html-agility-pack html-encode xss
asked by danmine

What is the best way to get artifacts from TeamCity?

I would like to pull artifacts from teamcity....I've been trying to use c# and the HtmlAgilityPack to goto the website and find the latest version and its artifacts. I'm currently stuck at the login, I think I just need to be sending Session Cookies out..
ant continuous-integration html-agility-pack nant teamcity
asked by Scott Cowan

Option End Tags are removed from HtmlAgilityPack.

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 for selecting attribute values

I'm trying to retrieve a specific image from a html document, using html agility pack and this xpath:...//div[@id='topslot']/a/img/@src ...As far as I can see, it finds the src-attribute, but it returns the img-tag. Why is that?...I would expect the Inner...
.net c# html-agility-pack xpath
asked by Vegar

Table parsing with HTML Agility Pack

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

HTMLAgilityPack does not close image tags.

Using the HTMLAgilityPack to write out a new image node, it seems to remove the closing tag of an image, e.g. should be but when you check outer html, has . ...string strIMG = "<img src='" + imgPath + "' height='" + pubImg.Height + "px' width='" + pubImg...
html-agility-pack
asked by mickyjtwin

HTML Agility Pack: How to Use It

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

HtmlAgilityPack does not pick childNodes as intended.

I am attempting to use the HtmlAgilityPack library to parse some links in a page, but I am not seeing the results I would expect from the methods. In the following I have a HtmlNodeCollection of links. For each link I want to check if there is an image n...
.net asp.net c# html-agility-pack xpath
asked by Sheff

Parsing li> in HTML Agility Pack

I want to scrape a list of facts from simple website. Each one of the facts is enclosed in a ...<li>... tag. How would I do this using Html Agility Pack? Is there a better approach?...The only things enclosed in ...<li>... tags are the facts and nothing e...
.net c# html-agility-pack html-parsing
asked by Fatal510

Modifying hyperlink tags using HtmlAgilityPack

How to use HtmlAgilityPack to Replace all hyperlinks, e.g.:...<a href="url">Link</> ...so that only the href attribute is left. the url....Is this possible?
html-agility-pack
asked by Salim

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

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

When using HTML Agility Pack, there is an encoding problem.

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

Encoding question: How can I export from HtmlAgilityPack to a StringWriter while maintaining the encoding?

I am reading html in with HtmlAgilityPack, editing it, then outputting it to a StreamWriter. The HtmlAgilityPack Encoding is Latin1, and the StreamWriter is UnicdeEncoding....I am losing some characters in the conversion, and I do not want to be....I don...
.net c# encoding html-agility-pack
asked by Alex Baranosky

OuterHtml Read-only in HTMLAgility Pack?

Hey there, I am traversing all the links in my own code base, and changing them from ...<a href="x">... to ...<asp:HyperLink>...'s for localization reasons. I'm using the HTMLAgilityPack for this (and other things) and I'd like to just change the OuterHtm...
html-agility-pack
asked by cschep

In the InnerHTML, HTMLAgilityPack parses

<div> <b>Token1</b> Token2 <b>Token3</b> </div> ...I try to extract Token2 from the div...I manage to get Token1 and Token3 with :...HtmlNodeCollection headerFooter = doc.DocumentNode.SelectNodes("//div//b"); ...How can I extract directly Token2 with HTML...
c# html-agility-pack
asked by Lazarus

delete children from html agility pack

I'm having difficulty trying to remove a div with a particular ID, and its children using the HTML Agility pack. I am sure I'm just missing a config option, but its Friday and I'm struggling....The simplified HTML runs:...<html><head></head><body><div i...
c# html-agility-pack
asked by Bob

HtmlAgilityPack is used to parse HTML pages.

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

The example for altering links in HtmlAgilityPack does not work. How do I go about doing this?

The example on ...codeplex... is this :...HtmlDocument doc = new HtmlDocument(); doc.Load("file.htm"); foreach(HtmlNode link in doc.DocumentElement.SelectNodes("//a[@href"]) { HtmlAttribute att = link["href"]; att.Value = FixLink(att); } doc....
c# html-agility-pack uri xpath
asked by arri.io

Using C# to create clean HTML

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

Get Page Summary with HTML Agility Pack

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

Page 1 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!