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

Tags not in the whitelist are stripped by HTML Agility Pack.

I'm trying to create a function which removes html tags and attributes which are not in a white list. I have the following HTML: ...<b>first text </b> <b>second text here <a>some text here</a> <a>some text here</a> </b> <a>some twxt here</a> ..
c# html-agility-pack html-parsing sanitize tags
asked by Dragos Durlut

html agility pack parsing question

I have this simple string:...string testString = "6/21 <span style='font-size: x-small; font-family: Arial'><span style='font-size: 10pt; font-family: Arial'>Just got 78th street</span></span>"; ...how do i use the html agility pack to parse out just the ...
asp.net c# html-agility-pack
asked by Rod

Html Agility Pack removes all html tags.

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

When using HTML Agility Pack to query HTML for ID, an exception occurs.

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

Fix li> list order in HTML Agility Pack

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

HtmlAgilityPack's javascript function is called.

I want to use HtmlAgilityPack in a form application to read some pages content but on the page search subpage I need to invoke the javascript and the link looks like this:...<a href="javascript:__doPostBack('lnkbtnNext','')" id="lnkbtnNext">Następny >></...
c# html-agility-pack javascript winforms
asked by shin

Can I choose a node whose next (or previous) sibling meets certain criteria using XPath?

I am reformatting an HTML document using the Agility Pack, and I've run into a limitation of my understanding of XPath....In the document I'm working with, the following is a common construct:...128...2...Which is built like this:...128<img src="" style="...
html html-agility-pack xpath
asked by John Gietzen

Every HTML table row's first and second cell

I'm trying to get just some specific cells in each row using HTMLAgilityPack....foreach (HtmlNode row in ContentNode.SelectNodes("descendant::tr")) { //Do something to first cell //Do something to second cell } ...There are more cells, and each ce...
.net html-agility-pack xpath
asked by peirix

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

Using XPATH, get the meta tag attribute using HTML Agility Pack.

META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" /> TITLE>Microsoft Corporation META http-equiv="PICS-Label" content="(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0))" /> META NAME="KEYWORDS" CONTENT="p...
html html-agility-pack xpath
asked by Eugene

Create a node from text using HtmlAgilityPack.

Let's assume I have this...<div> <p>Bla bla bla specialword bla bla bla</p> <p>Bla bla bla bla bla specialword</p> </div> ...I want to replace the word ...specialword... from my html with a node, for example ...<b>specialword</b>.... This is easy ...
html html-agility-pack replace
asked by morsanu

Using HTML Agility Pack to get the value of a javascript variable

Is it possible to get a javascript variable value with html agility pack?...<script type="text/javascript"> var title = "Site title"; var articlesummary = "article summary."; </script> ...Is there any way that html agility pack would allow me to get the ...
html html-agility-pack javascript variables
asked by Eugene

In C#, how do you parse an HTMLDocument?

I want to get the text of an html page using a simple application in c#? If there are nested elements ie.,...<Table> <TR> <TD>**ABC** </TD> <TD>**1** </TD> </TR> <TR> <TD>**XYZ** </TD> <TD>...
asp.net c# html-agility-pack
asked by shamim

How to Apply Getting table value with the HtmlAgilityPack

http://www.dsebd.org/latest_PE_all2_08.php ...i work on asp.net C# web.Above url contain some information ,i need to save them in my database and also need to save then in specified location as xml format.This url contain a table.I want to get this table ...
asp.net html-agility-pack html-helper html-parsing
asked by shamim

Loop over rows and columns with the HTML Agility Pack

How can I loop through table and row that have an attribute id or name to get inner text in deep down in each td cell? I work on asp.net, c#, and the newest html agility package. Please guide. Thank you....An html file have several tables. One of them ...
asp.net c# html-agility-pack
asked by David

Html Agility Pack is the best technique to integrate nodes.

I've converted a large document from Word to HTML. It's close, but I have a bunch of "code" nodes that I'd like to merge into one "pre" node....Here's the input:...<p>Here's a sample MVC Controller action:</p> <code> public ActionResult Index()</co...
c# html-agility-pack
asked by Jon Galloway

Encoding issue with C# and HtmlAgilityPack

WebClient GodLikeClient = new WebClient(); HtmlAgilityPack.HtmlDocument GodLikeHTML = new HtmlAgilityPack.HtmlDocument(); GodLikeHTML.Load(GodLikeClient.OpenRead("www.alfa.lt"); ...So this code returns: "Skaitytojo klausimas psichologui: kas lemia homose...
c# encoding html-agility-pack
asked by August

To login to Facebook using.NET, use BrowserSession and HtmlAgilityPack.

I'm trying to use Rohit Agarwal's ...BrowserSession... class together with HtmlAgilityPack to login to and subsequently navigate around Facebook....I've previously managed doing the same by writing my own HttpWebRequest's. However, it then only works when...
.net c# cookies html-agility-pack
asked by Karsa Olong

"Expression must evaluate to a node-set." error while using XPath

I'm having trouble retrieving a single node by its explicit XPath that I have already found by other ways. I have ...node... and I can get its XPath, but when I try to retrieve that same node again this time via node.XPath it gives the "expression must e...
.net c# html-agility-pack node-set xpath
asked by Snives

How do I count the number of SelectedNodes in C# using XPath?

I am using HTMLAgilityPack in my application, and i want to get the item(node) count of SelectedNodes as the code below:...HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.LoadHtml(webBrowser1.DocumentText); var tagListe = doc.Do...
c# count html-agility-pack xpath
asked by caglaror

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