On 2/14/13 10:48 AM, JDE wrote:
> My question is about the possibility of using the library contained
> in the mozilla global tree under parser/htmlparser to parse a HTML5 file
> (local file, not downloaded) from a C++ program and getting the DOM
> tree so that my program can transform the HTML file.
First of all, parser/htmlparser is not an HTML5 parser. It's the old
tagsoup parser. The HTML5 parser is in parser/html.
Second, neither one is really designed as a standalone drop-in parser,
though the HTML5 parser is maybe closer to it...
> -In which library have their object code been included?
> Is it possible to link an independet program that uses it?
Yes, probably, but you'll be pulling in all of libxul.
You may want to talk to Henri Sivonen about using the translate-to-C++
bits or http://about.validator.nu/htmlparser/
as part of your project...
that's basically what parser/html is.