Hi,
I am trying to scrape some content from an HTML page. I'm using libxml2 and htmlReadMemory to get a xmlDocPtr. The HTML is simple, but it has a problem. It's basically the following:
<tr><td><tr><td>Some content</td></tr></td></tr>
libxml doesn't like the nested tr, tds. It keeps giving me the following error:
HTML parser error : Unexpected end tag : td
</TD>
^
HTML parser error : Unexpected end tag : tr
</TR>
I am using the following option: HTML_PARSE_RECOVER.
At this point nothing i do allows libxml to parse the HTML because of this. I can't change the HTML because I have no access to it.
Anyone have any clues how I can get libxml to parse this sort of HTML?
Thanks