New Post: target images within a particular div issue
from http://htmlagilitypack.codeplex.com/discussions/266083 //div[@class='col3']/p[2] select the second P, which parent it's a DIV with class='col3'
View ArticleNew Post: show page
how can i show this on a windows form c# site is megahits.fm and then click on "acabou de tocar" and then you will the box that i want o show and the two textboxes to insert time... here is a little...
View ArticleNew Post: Help pls
Hi, help me please. I have file - test.html (http://86.57.254.183/test.html) how me parse this table whith HAP? This table I parse whith another sait, but this table I can't parsing. Sorry for my...
View ArticleNew Post: Selecting specific childs of childs of childs...?
Did you solved your problem? I am facing the same problem where Descendants is not returning grandchildren nodes!!!! I am using now: var tds= doc.DocumentNode.DescendantNodes().Where(n =>...
View ArticleNew Post: Parsing out the TITLE tag of HTML pages
Hi guess I've created a simple demo app using the Agility Pack at: http://www.codeproject.com/KB/cs/ProgressViewModel.aspx http://www.codeproject.com/KB/WPF/MultiProgressViewModel.aspx Just thought...
View ArticleNew Post: SelectSingleNode return null...
code is: HtmlNode n = html.DocumentNode.SelectSingleNode("/html/body/div[@id=content]/table/tr/th/div/a"); when in debug, i manualy can found this node using ChildNodes from root. but, why XPath...
View ArticleNew Post: Line Incorrect?
Line 79 of NameValuePairList appears to be incorrect. Replaced with: string[] onep = pv.Split(new char[] { '=' }, 2);
View ArticleNew Post: SelectSingelNode returns null
Hello, I'm a beginner in using HtmlAgilityPack and XPath. I have download and install the Pack and the Pack Tester. Using the Tester I have gotten an XPath. My problem is that in my code (see below)...
View ArticleNew Post: SelectSingleNode return null...
Hello, You have missed the quotes around content! If you use: "/html/body/div[@id='content']/table/tr/th/div/a" Then it should work! Just in case you haven't downloaded these two programs, you...
View ArticleNew Post: SelectSingleNode return null...
the reason was there i even dont try to look... big thanks, but it means that not all expressions that System.Xml.XmlDocument support are supported.(it works without quotes )
View ArticleNew Post: SelectSingelNode returns null
Ok, I have found the problem! This time it wasn't me!!! I have installed HtmlAgilityPack via NuGet and it installed version 1.4.3 This version has an error when handling tables! <!DOCTYPE html...
View ArticleNew Post: Webpage won't load in web.load method
I am trying to load a wepage using the following code but the process hangs and times out at the web.load HtmlAgilityPack.HtmlWeb web = new HtmlWeb(); HtmlAgilityPack.HtmlDocument doc =...
View ArticleNew Post: Get data html tables with C#
Hi, I would extract the content in attribute class=topictitle, in my example, I want get "[IMPORTANT]" in a string variable . CODE : <td> <a title="Posté: Lun 23 Jan 2012 00:56"...
View ArticleNew Post: SelectSingelNode returns null
Same problem is valid for the list elements in revision 94773.
View ArticleNew Post: How to match the Text without the node?
Hello guys, I have written an application to parse the html code in order to pick up the text from the html.I have use the HAP in my application and it works well at the first,And then I have...
View ArticleNew Post: SelectSingelNode returns null
I found that the table handling error is caused by different logic from 1.4 stable version. You can see that it is different on the searching name ( one is from parameter and one is _currentnode.Name)...
View ArticleNew Post: What is the default timeout for htmlagilitypack
Hello. I am using latest build of htmlagilitypack. I downloaded and run the build to get the dll file. Runtime version : v2.0.50727 Now i am using this method to load web pages hdMyDoc =...
View ArticleNew Post: Gettin error with the Load Functionality
I saw the following code in one of the sites and tried it for my Windows Phone 7 project. HtmlWeb web = new HtmlWeb(); HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();...
View ArticleNew Post: Warning: Argument type 'HtmlAgilityPack.HtmlNode' is not CLS-compliant
I'm passing an HtmlNode as a method argument, and getting the following warning: Argument type 'HtmlAgilityPack.HtmlNode' is not CLS-compliant My assembly is marked as being CLS compliant. I got rid...
View ArticleNew Post: Changing Phrases to Links
Hi. I have a SQL database containing the HTML for the pages in my site. I use ADO to pull this out and display it. I am in the process of developing a feature which allows me to replace certain phrases...
View Article