Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use nsHTMLDocument in source 3.0.8?

6 views
Skip to first unread message

chinesea...@gmail.com

unread,
Apr 11, 2009, 7:35:27 AM4/11/09
to
hello everyone,

I want to obtain all links in a website,but

I'am so disapoint with the use of nsHTMLDocument.I have tried many way
to use it.

for One like this,

NS_NewHtmlDocument() to create a instance

but it has many link error,

about MOZILLA_INTERNAL_API.

I also try to access nsIHTMLDocument with XPCom Way, but I don't know
how to do it.

in xpcomviewer I can't find the nsIHTMLDocument in the tree. So I
don't know how to obtain

the interface exactly.I thought it may be don't expose to public to
use it.

And then I tried to include all .h & .cpp to create a new vc project
to build.

but it too hard to do this, million of files.and also million errors.
In the end I give up this way.

SO,

Have anyone have the idea of use the mozilla source to help obtainning
the links in a web page?

Contact me,with large thankness.Chi...@gmail.com

0 new messages