Re: mshtml as html parser

2006-12-08 Thread Jacek Caban

Hi Kirill,

Kirill K. Smirnov wrote:

Hi, all!

Just a little question: can wine's current implementation of mshtml.dll be 
used as html parser? I need to convert html code into a tree without 
displaying it.
I tried to look through the code, but I'm not familiar with OLE. BTW some 
E_NOIMPL confused me

Wine's DOM implementation is mostly a stub. Only basic functions
are implemented (that is functions used by apps I've been working on).
Others are usually trivial to implement but there is a lot of them.
Anyways if you write an app and look for parser lib, I'd suggest using
something else, eg Gecko.

Jacek




Re: mshtml as html parser

2006-12-07 Thread Kirill K. Smirnov
>> Just a little question: can wine's current implementation of mshtml.dll be 
>> used as html parser? I need to convert html code into a tree without 
>> displaying it.

>You might want to use tidy and an XML pareser :
>http://www-128.ibm.com/developerworks/library/x-tiptidy.shtml

This way looks too complicated in the following case:

I switched off from winhelp in favor of chmhelp - winhelp works somehow, but 
chmhelp not.
chm content is an simple HTML file, which can be parsered by hands (like xCHM 
utility does), but if there is a library like mshtml (or msxml) why not use it? 
The only problem is I am afraid wine's mshtml has E_NOTIMPL in piece of codes 
looks interesting to me. (I do not understand the architcture of mshtml.dll to 
be sure). To stop wandering I decided to write a question here.

So the question: can the wine's mshtml (as it is now) be used? I looked for 
smth like CreateHTMLDocument2(...) but failed.

-- Kirill K. Smirnov



Re: mshtml as html parser

2006-12-07 Thread Jonathan Ernst
Le jeudi 07 décembre 2006 à 22:52 +0300, Kirill K. Smirnov a écrit :
> Hi, all!
> 
> Just a little question: can wine's current implementation of mshtml.dll be 
> used as html parser? I need to convert html code into a tree without 
> displaying it.

You might want to use tidy and an XML pareser :
http://www-128.ibm.com/developerworks/library/x-tiptidy.html






mshtml as html parser

2006-12-07 Thread Kirill K. Smirnov
Hi, all!

Just a little question: can wine's current implementation of mshtml.dll be 
used as html parser? I need to convert html code into a tree without 
displaying it.
I tried to look through the code, but I'm not familiar with OLE. BTW some 
E_NOIMPL confused me.

Thanks in advance