Re: [xml] why is htmlNewParserCtxt static?



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

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 ?

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



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