Re: Making Tidy into a library call

On Fri, 2 Jul 1999, Douglas Cook wrote:

> I will soon begin work integrating Tidy into a larger program
> that I am working on, using it to convert existing files into
> XHTML for input into a database.  I'm working in MS VC++ 6.0,
> buiding for a multiprocessor Windows NT platform.  Has anyone
> else converted Tidy into a library?  Any recommendations or
> things to be aware of?
> 
> I've only looked over the code for a minute or two; the real
> work won't start until after the holiday.  But I guess the
> obvious questions are these:
> 
> Am I spinning my wheels (i.e. has someone already done this that
> could share some of their experiences with me)?

Yes, more than one person has done this. For instance "Chami" has
wrapped Tidy as a DLL for use in HTML-Kit, see the Tidy home page
for a link.

> Which portions of the initialization/uninitialization are "Init
> once/uninit once" and which are "init before each file is
> parsed/uninit after?"

You can see the details in the code for main().

Let me know if there are any changes that need to be made to the
Tidy code itself to forstall any problems arising from regular
updates to Tidy which otherwise you would have problems from
benefitting from.

Regards,

-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)

Received on Tuesday, 6 July 1999 10:46:50 UTC