New Post: SelectNodes to return empty HtmlNodeCollection if no matching node...
Then use the LINQ interfaces of Descendants and Elements. SelectNodes matches the .NET System.Xml API for which it was built upon. I agree this should be overhauled to return an empty list but the fact...
View ArticleNew Post: Removing element by class
I'm sure Dave is passed his problem, but I was hitting this tonight and I eventually found a solution. Posting to help others: Here's what worked for me to remove an element using its class:...
View ArticleNew Post: Remove the HTML tags from a string using Html Agility Pack
I want to remove the html tags that are coming in a string. How can I do this by using HTML Agility Pack?
View ArticleNew Post: Can this be used in windows phone 7
My project notices me that I need reference the System.Xml 2.0.0. However. I have referenced System.Xml 2.0.5. It seem like that they are not compatible
View ArticleNew Post: Getting absolute links instead relative ones
Can someone write down the complete as to how the final code will look like.
View ArticleNew Post: I have recompiled entire project to .NET 4.0...
But don't know how to upload using TFS. I think someone needs to grant me ability to upload.
View ArticleNew Post: I have recompiled entire project to .NET 4.0...
Hi, I am interested in it. Can you send the dll to me by email?
View ArticleNew Post: I have recompiled entire project to .NET 4.0...
The information contained in this e-mail may be confidential and is intended solely for the addressee. Unauthorized access, disclosure, copying, distribution or other action taken or omitted relying...
View ArticleNew Post: Attribute Value quotation correction
I notice with the HAP, that it doesn't seem to correct quotations if you do something like say... <table id="Table" align="center" cellpadding="0" cellspacing="0" width="630px"...
View ArticleNew Post: Cannot get all input, textarea, option of form
Hi all I want to get get all input, textarea, option of http://diendan.yeutretho.com/register.php form but it return null. This is my code HtmlAgilityPack.HtmlWeb web = new HtmlWeb();...
View ArticleNew Post: Any way to associate HtmlAgilityPack classes with .NET Html classes?
I apologize for reviving an old topic, but did anybody manage to achieve this?
View ArticleNew Post: Any way to associate HtmlAgilityPack classes with .NET Html classes?
The only thing I can think of is generating a GUID for each element and assigning it to a custom attribute such as "data-my-custom-attribute", which is kinda what jQuery does to keep track of elements....
View ArticleNew Post: Any way to associate HtmlAgilityPack classes with .NET Html classes?
Like in any other programming thing ... you need the idea, everything else is simple. THANKS FOR THE IDEA! Actually things are a lot simpler right now. Let's say you have HTMLElement <div...
View ArticleNew Post: Metro version and SelectNodes
Hello! I'm trying to do several tests on the version for Metro applications. Much of the code I used so far is valid and that I miss in class HtmlNode SelectNodes method. How can we select the...
View ArticleNew Post: Cannot get all input, textarea, option of form
You can use this open source project to resolve this issue. http://sgmleskulapnet.codeplex.com/
View ArticleNew Post: Metro version and SelectNodes
Use Descendants() functions. Will have to use LINQ methods to do querying. Unfortunately WinRT does not include any implementation of System.Xml.Xpath. Unlike Windows Phone the Silverlight 4...
View ArticleNew Post: Cannot get all input, textarea, option of form
To allow form to have child elements use the modify the HtmlNode.HtmlElements collection and remove the "form" item. ElementsFlags.Remove("form")
View ArticleNew Post: I have recompiled entire project to .NET 4.0...
HAP has always worked in 4.0. Now there is an official 4.0 project in the source code and a 4.0 build included in the latest Nuget package
View ArticleNew Post: Attribute Value quotation correction
Actually, I agree it should handle/fix things like this. I'll add it to the list of parsing engine things to look into.
View Article