[xml] Freeing XML nodes.
- From: Harring Figueiredo <harringf yahoo com>
- To: libxml-list <xml gnome org>
- Subject: [xml] Freeing XML nodes.
- Date: Wed, 20 Nov 2002 08:28:23 -0800 (PST)
Hello all,
I am parsing a XML doc - no DTD validation or anything --just palin simple
parsing.
On all my nodes I have something of this nature:
if( !xmlStrcmp(cur->name, (const xmlChar*) "Job_Name")) {
req->job_name =
g_strstrip(xmlNodeListGetString(doc, cur->xmlChildrenNode, 1));
}
At the end of the parsing, I do a XMLFreeDoc(doc).
My question is: Do I have to free the nodes myself, or does the XMLFreeDoc
call takes care of it for me ?
I do free the req->job, is it all I have to do ?
Thanks.
__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]