PROBLEM: IHTMLDocument2::readyState Property stays at loading when streaming

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Su Wei (suwei_at_sina_com)
Date: 06/04/04


Date: Fri, 4 Jun 2004 19:59:20 +0800

I want to use IHTMLDocument2 to parse .htm file on disk with no ui attached.
I've tried many code including walkall and usenet posted. After loading the
file with either IPersistFile::Load or IPersistStreamInit::Load the
readystate stay at loading and never goes to complete. the dom of
IHTMLDocument always like
"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD></HEAD>
<BODY>
<P>&nbsp;</P></BODY></HTML>
"
I've found early post reporting the same problem:
http://www.google.com/groups?q=ihtmldocument2+readystate+loading&hl=zh-cn&lr=&ie=UTF-8&selm=uzk46daDEHA.1240%40TK2MSFTNGP10.phx.gbl&rnum=6
Is this a bug in ie6? How can I load local file to parse only with
IHTMLDocument2?



Relevant Pages

  • Re: Searching web sub-pages
    ... into a WebBrowser control or IE instance). ... weren't thinking of using DOM to look for the keywords. ... so as to avoid the bloat of loading them ... Then I would just parse them with InStr. ...
    (microsoft.public.vb.general.discussion)
  • fetch a manay URLs
    ... when they are all downloadded I parse the data and display some results ... loading the next one is loaded. ... any suggestions would be good all I realy want is a way to load all the ...
    (comp.lang.perl.misc)
  • Re: scotty/Tnm extension
    ... When loading the MIB files, I sometimes get Parse ... the loading order has to be correct. ...
    (comp.lang.tcl)