Re: IPersistStreamInit save vs URLDownloadToFile



Thanks,

to use .outHTML, the only problem is missing doc type information or other
information before <HTML if to save whole file. such as in XHTML,
<?xml ..>
<!DOCTYPE ...>
<HTML ....

Can we get these <?xml , <!DOCTYPE from IHTMLDocument ?


Mike J









"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote in message
news:uQvZV1NhGHA.4712@xxxxxxxxxxxxxxxxxxxxxxx
Mike J <notvalid@xxxxxxxxx> wrote:
For saving HTML file to disk, what is the difference between
IPersistStreamInit->Save and URLDownloadToFile except
IPersistStreamInit->Save can clear the dirty flag?

URLDownloadToFile does not require that the URL be loaded into the browser
first. If you load into the browser anyway, then there is no practical
difference.

Also, when I use DOM to change IMG's src, it shows on WebBrowser,
but when I use IPersistStreamInit->Save, it still save original src
of image. It does not save changed DOM properties. How can I save
changes made for the HTML page ?

document.documentElement.outerHTML
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925




.



Relevant Pages

  • Re: Simple question ??
    ... A web page is basically an HTML document. ... a technology that, at the most basic level, delivers HTML to a web browser. ... Internet Explorer, for example, can display Word documents, ... file format to a browser in its native state. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Toward WYSIWYG Web Page Authoring
    ... HTML and the web browser, ... Of course, even at the time of the first GUIs for developing HTML, WYSIWYG ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Mulberry gone, now what?
    ... > browsers is about reading broken HTML. ... It's easier for a browser to be backwards ... bear on web developers ("My son at college says the page looks different ...
    (comp.mail.imap)
  • Re: Toward WYSIWYG Web Page Authoring
    ... >> WYSIWYG Web page development capability on the Web - ever? ... > HTML and the web browser, ... > browser being the only web browser in existence at the time. ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Toward WYSIWYG Web Page Authoring
    ... >> HTML and the web browser, ... >> browser being the only web browser in existence at the time. ... >> WYSIWYG was already an impossible goal. ... The best answer has emerged in the form of XML. ...
    (microsoft.public.dotnet.framework.aspnet)