New Post: Load XML inside the HTML source code
There are some XML tags inside the HTML source code of a website <html> <xml id=".."> </xml> </html> Can I use Html Agility Pack to load that XML file and read? Thank you.
View ArticleNew Post: Select encoding/charset on Windows Phone
How about instead of using this ecoding tool do this: web.LoadAsync(baseUrlAddress, Encoding.GetEncoding("iso-8859-1")); Works for me in WP 7.1 sdk.
View ArticleNew Post: Select encoding/charset on Windows Phone
Strange. According to this: http://msdn.microsoft.com/en-us/library/t9a3kf7c(v=vs.95).aspx the only valid values are utf-8 and utf-16 variants. My code threw exception when I tried using iso-8859-2.
View ArticleNew Post: XPath to select attribute
So what's up now with HtmlNodeType.Attribute? In last versions of HAP it's still not implemented, and when I select node's attribute the whole element node is selected((
View ArticleNew Post: Possible to get position and length of Node content in original input?
Is it possible to read the original source position and length of a Node's content in the original input data? I know Node already has StreamPosition that points to the character where a Node begins...
View ArticleNew Post: Parse html based on classname with HtmlAgilityPack
Hello, I'm just getting started with HtmlAgilityPack and I could use some help. I'm not sure if what i want to do can be done with HtmlAgilityPack, though i search the internet for resources. I would...
View ArticleNew Post: How to dispose HtmlDocument?
I have a method that has a string param (html). I use it to construct HtmlDocument and query it. My question is do I need to dispose of HtmlDocument somehow? If yes, how? it does not implement...
View ArticleNew Post: How to auto close DD tags
I'm currently working on a project where the HTML is not well formed, the developer has forgot to close one of their DD tags before opening the next dd tag. In browser or for other tags this results...
View ArticleNew Post: Somebody can upgrade fizzler to support HtmlAgilityPack v1.4.6 ?
Somebody can upgrade fizzler to support HtmlAgilityPack v1.4.6 ? I downloaded Fizzler from http://code.google.com/p/fizzler/ , but I can't compile the solution with HtmlAgilityPack v1.4.6 now .
View ArticleNew Post: XPath to select attribute
Hi, Same question than RaTT: is there plan to integrate that in the NuGet deliverable? I have some generic code that take an arbitrary (.config) xpath expression, find the node and remove it. I have...
View ArticleNew Post: Portable Class Library Project (Attempting) - Suggestions Request
Hi All,I'd really love to use htmlAgilityPack, but we're targeting mostly mono platforms and windows "garden" platforms like Windows Store and Win Phone 7.5 and 8. So...I might a stab at making a...
View ArticleNew Post: Flatten the document?
I need to flatten the document, is there a way at all to do that with the API?Like if the doc is this<div><div> text1</div> text2</div>It would just give me two text nodes...
View ArticleNew Post: How to load a file directly from the web?
Hey guys, maybe I am a little bit confused right now, but how can I manage it to get a html document directly from the web?Seems the HtmlDocument.load method only loads local files? Or do I have to use...
View ArticleNew Post: How to load a file directly from the web?
What I did was download the Html page using WebClient.DownloadString, then open it up using HtmlDocument.loadHtml, works fine.
View ArticleNew Post: HtmlWeb not loading a particular website
StackOverflow link for more details: http://stackoverflow.com/questions/13400493/htmlagilitypack-htmlweb-load-returning-empty-documentI've been a happy user of HtmlAgilityPack for 2 months with no...
View ArticleNew Post: MHT Read & Write
Hello,I've been using this excellent html parser for a little while now and recently I have a requirement for reading and writing mht files. I had to massage the mht before loading it up into the...
View ArticleNew Post: Unwanted completion
The HtmlAgilityPack is relatively new to myself but logically 'OptionsCheckSyntax=false' would work. The problem you seem to be running into is your use of '<' and '>' characters.These characters...
View ArticleNew Post: HTML5 support
Html Agility Pack should be able to parse HTML5 without any problems, so long as a logical structure expected of valid HTML is provided. After a quick look through the specification the only possibly...
View ArticleNew Post: Agility Pack Usage for Getting Content Between html tags
publicstring getContent(string webAddress){HtmlAgilityPack.HtmlWeb web =newHtmlAgilityPack.HtmlWeb();HtmlDocument doc = web.Load(webAddress);returnstring.Join(" ",...
View ArticleNew Post: System.Xml.Xpath error on window xp for Visual Studio 2008
I installed htmlagility pack and developed a new program but when I run the program. I have the following error.The type 'System.Xml.XPath.IXPathNavigableS' is defined in an assembly that is not...
View Article