Re: [xml] xmlSAXHandler member initialization



On Tue, Apr 16, 2002 at 10:22:57AM +0200, Armin Kurz wrote:
Hello !

I just startet to "play" with libxml2, implementing a simple app using xmlSAXHandler
and xmlSAXUserParseFile () to read a doc and extract contents to a c struct.

Have 2 Questions: 

1) is there a way in libxml2 to set all members of xmlSAXHandler to NULL with a single function ?
 I'm doing this for each individually now ... 

  Except memset(handler, 0, sizeof(xmlSAXHandler)), no.

2) What is the "xmlSAXHandler.initialized" member for ?

  in the default handlers it's to avoid resetting them in case 
the users decided to make the change for the whole application.

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/



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