[xml] re-use xmldocPtr

Hi folks,

I'm currently reading the api doc, especially the parser part, but I can't find what I'm looking for.

I have to read several documents, differents from each others, and I want to re-use my xmlDocPtr. My main program calls many times a function which reads, parses and works on my files.

In this function, I wonder if I can re-initialize my xmlDocPtr without xmlFreeDoc and xmlNewDoc for each function call. Sorry if this is obvious, maybe the xmlDocDumpxxx functions do that, but there is another a way to do it ?

Thank you very much for your help, regards,

Remy HAREL          -        Teamlog        |
Linux registered user #224740               |
France Telecom Recherche & Developpement    |

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