Quantcast
Browsing all 655 articles
Browse latest View live

New Post: How can I step through all nodes?

I need to be able to process all the HTML elements in sequence, as I'm looking for "context" not just a particular type of node.  For example, I want to search for a particular comment, followed by a...

View Article


New Post: How can I step through all nodes?

HtmlDocument.DocumentNode.Descendants() ;) This function recurses down through all the nodes in the document in a flat list. It will recurse so as it hits a node the next nodes will be its children.

View Article


New Post: How can I step through all nodes?

How do I declare the result of this?  It shows as returning an HTMLNode.<DescendantNodes>d_10, which I 'm not sure how to declare.  I can do a for each, but I'd like to be able to break out of...

View Article

New Post: Metro version and SelectNodes

Thank you. I've been testing using LINQ with good results. However there are methods that I can not get without using SelectNodes. Such as:      var query = from table in doc.DocumentNode.SelectNodes...

View Article

New Post: Remove the HTML tags from a string using Html Agility Pack

Hello coder,If you are using C#, here is a simple REGEX function that will do the job for what you are asking.  private string StripTagsRegex(string source) {            return Regex.Replace(source,...

View Article


New Post: how to build for metro?

sorry for the FAQ. I was trying to build the Metro version and got an error about how it couldn't use the pfx file.  I then went and deleted the pfx file (just to try)  and it still didn't build - all...

View Article

New Post: Getting the responsing url

Is there any way to get the url that actually responded while trying to load a given url. Some sites have redirects etc. so it's not surtain that the url I requested is the one that responded... Anyone?

View Article

New Post: System.ArgumentOutOfRangeException was unhandled

Hello I get the following but and I don't think I am doing anything wrong. I create a new .net 4 console application in VS 2012 RC (clean machine, no other version of VS installed). I add a reference...

View Article


New Post: System.ArgumentOutOfRangeException was unhandled

Apparently it was a conflict with another version installed on the machine by a third party component

View Article


New Post: Suitability for XSS prevention

Due to issues with the latest releases of the AntiXSS library the Html Agility Pack is being suggested in a lot of places for sanitizing input to prevent XSS attacks. E.g....

View Article

New Post: Latest version

Why the version here at codeplex isn't the latest? 1.4.4 http://nuget.org/packages/HtmlAgilityPack   Also, when I install the package from nugget, it does not have XML comments for classes/methods. It...

View Article

New Post: Latest version

The nugget 1.4.4 version is the stable one? Which one is the stable version?

View Article

New Post: Documentation

Hmm... How do we find out the details of this software? There is nothing under the CodePlex Documentation tab, and the downloadable documentation is a CHM file that I cannot read on Windows 7 (I get...

View Article


New Post: Documentation

Right click on the .chm file and select "properties" click on the "unblock" button you should then be able to read it.   it's a restriction in recent OSes designed to prevent auto-running of active...

View Article

New Post: Extract/Parse basic html table with headers

I have tried several examples here but its not leading me to the correct solution. Here's what I'm looking for : customer.html <html> <head> <title>TESTING</title>...

View Article


New Post: Select an node by its value

Hello guys! I need to select an node by its value. This is my HTML source:   <tr> <!-- blank TD from Windows rowspan --> <td> <a onclick="onDownload(this)" id="win-sdk"...

View Article

New Post: Possible to disable HAP correcting any nodes (HTML)?

Wondering the same...

View Article


New Post: Extract/Parse basic html table without headers

Figured it out! :)   Here's for the newbees like me :)   using System; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using HtmlAgilityPack; namespace Phonex {...

View Article

New Post: Select an node by its value

I believe this should do the trick. HtmlNodeCollection a = Links.DocumentNode.SelectNodes("//a[@id or @href]");

View Article

New Post: Problem with help document

Hi, have you tried to right click and select Properties and then you should see just below the Advance button the Unblock button.

View Article
Browsing all 655 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>