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)

1054 results for:

HTML Agility Pack strip tags NOT IN whitelist

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 question in parsing

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

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

Calling javascript function from HtmlAgilityPack

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

XPath: Can I select a node whose next (or previous) sibling matches some criteria?

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

Get first and second cell of every HTML table row

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 to add <link> or <meta> tags to <head> with HtmlAgilityPack?

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

Getting meta tag attribute with HTML Agility Pack using XPATH

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

HtmlAgilityPack create node from text

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

Getting javascript variable value with HTML Agility pack

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

How to parse the HTMLDocument in c#?

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 use Using the HtmlAgilityPack to get table value

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

Html Agility Pack - loop through rows and columns

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

Best way to combine nodes with Html Agility Pack

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

C# and HtmlAgilityPack encoding problem

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

Using BrowserSession and HtmlAgilityPack to login to Facebook through .NET

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

XPath problem, getting "expression must evaluate to a node-set." error

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 to get count number of SelectedNode with XPath in C#?

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