From: Daniel Veillard (veillard@redhat.com)
Date: Mon Feb 26 2001 - 14:13:15 EST
On Sat, Feb 24, 2001 at 05:07:25PM -0800, michael scott frank wrote:
>
> I'm quite new using this library, so excuse me if this question is
> stupid, but are there some specific cleanup functions that need to be
> called between multiple calls to xmlParseFile()? I ask because my
> application parses multiple xml files to get its configuration, but when
> i call xmlParseFile() the second time, it segfaults. I made sure i
> called xmlFreeDoc() to free the dom after i was finished with it, do i
> need to call xmlCleanupParser() before parsing a new file?
>
> If my question seems like incoherent babble, maybe someone could point
> me toward a project or some example code that demonstrates parsing
> multiple files.
the xmllint parser front-end does exactly that if you give more than
one filename parameter. I just rechecked and it handle multiple files
without troubles. There is no need to call xmlCleanupParser().
I suggest you look at xmllint.c as a bootstrapping example.
Daniel
-- Daniel Veillard | Red Hat Network http://redhat.com/products/network/ veillard@redhat.com | libxml Gnome XML toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Mon Feb 26 2001 - 14:43:49 EST