On 6月8日, 下午11时30分, martin <rack...@gmail.com> wrote: > could you please recommend the way to get the pages HTML source code? > Do I have to use the nsIDOMDocument interface and reproduce the source > code or is there a better way to get it? Thank you in advance.
Use nsIChannel to get the orginal source. Here are the steps: 1. Create a channel(nsIChannel) from a uri(nsIURI) 2. Open the channel and get the stream(nsIInputStream) 3. Read the stream to cache(char []) try to use some functions like NS_NewChannel. _______________________________________________ dev-embedding mailing list dev-embedding@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-embedding