New Post: HtmlAgilitypack on strings C#
Yes it will still work but you will be unable to get the text before and after the first tagse.g.abcdhij dsfghp.DocumentNode.SelectNodes("//div").InnerText == "hij"
View ArticleNew Post: HtmlAgilitypack on strings C#
Thank you for the answer I suppose I will keep trying to get my Regex to match. I do see the advantage in a html-parser, but I don't think it'll work in this instance where the plain-text is also...
View ArticleNew Post: HtmlAgilitypack on strings C#
If you need help with regex give us a shout have done some complicated regex in the past.LeeOn Jan 30, 2013 7:17 PM, "Lobsterfun" <notifications@codeplex.com> wrote:From: LobsterfunThank you for...
View ArticleNew Post: HtmlAgilitypack on strings C#
I actually have a pretty big issue.I am printing to a pdf in C# and my boss wanted me to implement tinymce which went fine. Unfortunately we are using an old pdf printer-class that only supports b, i...
View ArticleNew Post: Parsing HTML Table Data
Hi eosjack,Did you find the solution for case sensitivity?
View ArticleNew Post: Is there a wildcard to filter
 Hi LeeJeary,  problem was the version i guess ., it was 1.4.0 ! can you check it once. Well now I have switch to 1.4.6 and it worked :-) Anyways thanks for looking into it. Regards,Salma
View ArticleNew Post: Is there a wildcard to filter
Perfect.. Glad it's working.. LeeOn Jan 30, 2013 11:04 PM, "arsh" <notifications@codeplex.com> wrote:From: arshHi LeeJeary,problem was the version i guess ., it was 1.4.0 ! can you check it...
View ArticleNew Post: HtmlAgilitypack on strings C#
Here is my solution would have to use a string loop through the regex to do the replace as couldn't think of a way to do multiple spaces based on the match.string html = "erwerw<p...
View ArticleNew Post: Children nodes
I am analyzing the timetable of a bus company. I get the necessary data from its website. A node of a bus stop looks like this:<tr data-stopcode="F01093"> <td>5</td> <td...
View ArticleNew Post: Children nodes
Hi Labuhere is a solutionAP.HtmlDocument hp = new AP.HtmlDocument(); hp.LoadHtml("<tr data-stopcode=\"F01093\"> <td>5</td> <td ><span>Fifth...
View ArticleNew Post: Children nodes
Thanks for your answer. I might not have made myself clear. -> " for your sample the second one you are looking for the last child of the document which is now tr then the first child which is the...
View ArticleNew Post: Children nodes
Ok.. What about AP.HtmlDocument hp = new AP.HtmlDocument(); hp.LoadHtml("<tr data-stopcode=\"F01093\"><td>5</td><td ><span>Fifth...
View ArticleNew Post: Beginner Help
Thanks for the response and code Lee. I am getting an error right now though... "Object reference not set to an instance of an object." for this line:var price_shipping =...
View ArticleNew Post: Beginner Help
Its probably that there isn't a shipping price for the item. you would need to check that the div with class = 'shipping_block' existsif (shipping_block != null) {}Lee
View ArticleNew Post: Beginner Help
It's working now, now I have to look at the code and figure out exactly how it's working... Thanks so much!
View ArticleNew Post: HtmlAgilitypack on strings C#
Wow this is perfect :-D Thank you very much! I didn't know if it was even possible. I had made a different solution, but it is not even close to being as dynamic as this regex!
View ArticleNew Post: Children nodes
Thanks, it's elegant and works fine. But I still don't know why my second trial doesn't work. Could you have a look at that?
View ArticleNew Post: Children nodes
Hi actually both seem to be working for me.. What version are you using? 1.4.6? what .Net version?tried version 1.4.0 and works as well.. all on one line no spaces. test.xml = <tr...
View ArticleNew Post: Creating ElementFlags from comments (non stadard HTML)
Hi everyone, Can you tell me if it is possible to create ElementFlags starting from comments from a HTML source of a page like:<!-- START_COMMENTZONE -->test zone<p> paragraph to take only...
View Article