I have a WebBrowser control and the Navigate (url) function is called for this file. Then I processed the DOM tree by specifying a new identifier for some of the tags.
Now I want to save the result in an HTML file. I tried using webBrowser.DocumentStream, but it seems that this stream will not change after manipulating the DOM tree.
Please keep in mind that to encode the result you must use the encoding in WebBrowser.Document.Encoding.
source
share