I'm trying to use the htmlparser module included with Mozilla to get
the DOM for a HTML document.
My current sketch at this point how i think it might be done is:
1) Create a Parser instance:
nsCOMPtr<nsIParser> parser(do_CreateInstance(kParserCID, &rv));
2) Create the HTMLContentSink
3) parser->Parse()
4) Get the built document from the sink
Is this the right path? Or do I need some additional components.
I'm currently stuck figuring out how to create an instance of
HTMLContentSink. I can not find out what the CID for it is. Any suggestions?
André
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding