[xml] when to use initialization



Hi,

I've looked at the initialization and cleanup functions like 
"xmlInitParser()" and "xmlCleanupParser".

I would be glad if someone could answer me the following:

   1. If I *don't* use libxml2's thread-support do I have to call
      xmlInitParser() only once per application or once per parsing?
   2. If I use libxml2's thread-support do I have to call xmlInitParser()
      once per initial thread entry? Or still just once per application?
      Or once per parsing?
   3. Do I have to call "xmlCleanupParser" only once per application?
   4. Do we need to call any other initialization of cleanup functions if
      using the thread-support?

Thanks,

Kasimier Buchcik

4commerce technologies




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