Re: [xml] htmlCreateMemoryParserCtxt



It's just that you need a context to be able to
use the HTML parser in a multi-threaded environment.

It would be nice to have an exhaustive documentation
on how to use libxml/libxslt in a multi-threaded
application. Right now, here are some things
which can not be done in a thread safe way:

- catch debug messages in the XSLT transform
- catch errors or debug messages when parsing an XSL
  stylesheet (for the xmlDoc to xsltStylesheet 
  conversion because xsltParseStylesheetDoc always
  uses the default handler).
- catch errors or debug messages when parsing HTML 
  (because most of the context handling functions 
  are static).

Regards,
Jerome




--- Daniel Veillard <veillard redhat com> wrote:
On Fri, Apr 04, 2003 at 03:26:35PM -0800, Jerome
Pesenti wrote:
Any reason why 

htmlCreateMemoryParserCtxt

is a static while

xmlCreateMemoryParserCtxt

is not?

This is a useful function (allows html
parsing while providing your own context...).

  It wasn't looking like something needed at the API
level.
I can make it public though ... Just one more entry
point <grin/>

Daniel

-- 
Daniel Veillard      | Red Hat Network
https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit
 http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine
http://rpmfind.net/


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]