Re: [xml] why is htmlNewParserCtxt static?

On Wed, Sep 20, 2006 at 06:37:27PM +1000, Michael Day wrote:

The htmlNewParserCtxt() function is static, but xmlNewParserCtxt() is 
not. Would it be possible to make htmlNewParserCtxt() function globally 
available so that it can be called from outside libxml2?

  But shouldn't you use one of the wrapper functions where you specify
what input will be used ? Like htmlCreateMemoryParserCtxt() or one of the
htmlRead... function ? What is your use case ?


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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