[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: [xml] Delete XML Nodes
- From: "Vedantam, Pavan" <Pavan Vedantam fmcti com>
- To: "Rush Manbert" <rush manbert com>
- Cc: xml gnome org
- Subject: RE: [xml] Delete XML Nodes
- Date: Mon, 30 Jan 2006 16:54:25 -0800
Hi Rush,
Thanks for the info, it works now. I followed bad programming practice
and it paid the price !.
Regards,
Pavan.
-----Original Message-----
From: Rush Manbert [mailto:rush manbert com]
Sent: Monday, January 30, 2006 12:20 PM
To: Vedantam, Pavan
Cc: xml gnome org
Subject: Re: [xml] Delete XML Nodes
Vedantam, Pavan wrote:
> Hi,
>
> I am trying to delete nodes within an XML file and i keep getting some
> garbage when i delete a node. I am using , xmlFreeNode(). I see the
same
> behaviour with xmlUnlinkNode(). Also it would be great if some one
could
> suggest on how to preserve the formatting when there is a deletion or
> addition of nodes.
>
> regards,
>
> Pavan
Hi Pavan,
I believe you need to unlink the node first, then free it, i.e.
xmlUnlinkNode (pNode);
xmlFreeNode (pNode);
- Rush
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]