New Post: stackoverflow exception - cannot trace cause
I am using the htmlagilitypack to parse an xml document. I use it to load the string as a htmldocument and then use the xmltextreader to parse. I will occasionally get an unhandled stackoverflow...
View ArticleNew Post: Problem selecting within a node
In the last persons example, just change the line to read: string test2 = row.SelectSingleNode(".//td").InnerText; The . means to do the search from the current node, // on its own means from the start...
View ArticleNew Post: Extracting Images And HTML From .html File
Hello, I'm new to the Html Agility Pack and was wondering if someone could help me out. I have a WPF C# project with an HTML string as shown below: htmlString =...
View ArticleNew Post: Inner Text but the hard way
I need to get some text from this web page http://openbook.etoro.com/ahanit/#/profile/Trades/ I want to use the trade feed for my program to analyse the sentiment of the markets. I used the VB browser...
View ArticleNew Post: How to check HtmlWeb.LoadAsync finished
I have a class in Viewmodel folder that using HtmlWeb.LoadAsync to get data from web: public void GetContent(int index) { //get content HtmlWeb.LoadAsync(Magazines[index].Url, (s, args) => { .......
View ArticleNew Post: A bug when save to a stream
The methods "public void Save(Stream outStream, Encoding encoding)" and " public void Save(Stream outStream)" in class HtmlDocument,declare a StreamWriter for writing data to stream with default...
View ArticleNew Post: Gett value from single node
I try get single value from this node: http://gg.pl/dysk/5TppYI-rUkJB5DppYI-rauA/depozyty%20z%C5%82otowe%20-%20WIBOR%206M-121502.png from this site :...
View ArticleNew Post: Html encoding only text nodes
Hi, Struggled with this for a while. Can html agility pack currently encode only text nodes ? I.E : " hi <3 Did you know we're stocklists blah blah, can read our blog here <a...
View ArticleNew Post: How to use HAPPhone APIs to achieve this function
Hi, I have ran into a problem usig XmlReader on WP7. It is because it does not support BIG5 encoding when trying to read XML content. Here is what I was trying to do. using (XmlReader reader =...
View ArticleNew Post: Validate/fix a html content
Hi all, Is it possible to validate/fix a html content with HtmlAgilityPack? Thank you
View ArticleNew Post: .net 4.5 version and WinRT version
Soon will be avaliable windows8 rc version (June). Developers can start writing apps now. There are not librarys compatible with winrt (which can verifie with WACK ). Html Agility Pack is one of the...
View ArticleNew Post: how to get table from another website with method=post
I want a table from another website. For testing purpose i have made an html file and saved it on my desktop with following code: <html> <head> <title>Search</title>...
View ArticleNew Post: how to get attribute value plz
hello, i need to get all the title attributes value ,only those who in the <td class = val> Code: <td class="val"><img class="r3" src="img/x.gif" alt="ind" title="ind" /> 750...
View ArticleNew Post: Possibility to be added as developer for creating test cases
Hi Is it possible to be added to the project so I can create tests cases for HtmlAgilityPack, which it definately lacks.
View ArticleNew Post: Possibility to be added as developer for creating test cases
yes you can add the dll file to your project
View ArticleNew Post: how to get attribute value plz
Here's how I would do it: HtmlWeb.LoadAsync(url, handleResults); public void handleResults(object o, HtmlDocumentLoadCompleted args) { IEnumerable<HtmlNode> columns =...
View ArticleNew Post: How to use HAPPhone APIs to achieve this function
Does the xml look like this: <text>Text you're trying to read</text> Assuming the above is true, you can create a list of text strings like this:...
View ArticleNew Post: How to check HtmlWeb.LoadAsync finished
Not sure if you thought of this, but why don't you just put all of the code that depends on the loaded content into the method that gets called when LoadAsync finishes? So everything after...
View ArticleNew Post: SelectNodes to return empty HtmlNodeCollection if no matching node...
I thought SelectNodes would be used in a LINQ fashion .... I was shocked when it returned null while I was trying to enumerate few elements ... come on guys its 2012 and this is LINQ world now ... it...
View Article