W3C home > Mailing lists > Public > www-lib@w3.org > April to June 2000

Re: Local file access problem

From: <jonah_lin@nysunburst.com>
Date: Thu, 1 Jun 2000 13:18:52 -0400
To: www-lib@w3.org
Message-ID: <852568F1.005F1D0D.00@sunbny1.hmco.com>

I have tried it with the patch, but it still gets stuck in the loop.
Is there any tricks to make it work?

Or, is it possible to get it to parse from a string containing the document?


>This is a known problem that several people have reported in the past.
>I think somebody even posted a patch for it, but that person wasn't sure
>tht this was the right solution.
>Michael Kifer

>> Hi, I'm trying to use the HTML parser to parse local HTML files. I'm basing
>> program off showtext. The thing is, it works great if it's a remote file
>> accessed via http (all the proper callback functions gets called), but when
>> trying to access the local file via the file protocol, I just get into an
>> infinite loop in this loop (in HTEventList_loop):
>> (It just responds to some window events, but that's it)
>> while (!HTEndLoop && GetMessage(&msg,0,0,0)) {
>>          TranslateMessage(&msg);
>>          DispatchMessage(&msg);
>> }
>> It seems to be waiting for an event to come in from the parser? Is there a
>> reason why a local file is not triggering the events while a remote file is?
>> have the file protocol and the Local transport properly set up. Is there
>> something else I'm forgetting to do?
>> BTW, I'm calling this simply by:
>> char * pURL="file:///C:/test.html"; // test contains just a few letters in
>> body
>> HTLoadAbsolute(pURL,request);
>> HTEventList_newLoop();
>> Any help would be appreciated..
>> Thanks,
>> -Jonah
Received on Thursday, 1 June 2000 13:26:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:52 UTC