Hi, I followed up previous posts(http://mail.gnome.org/archives/xml/2005-September/msg00094.html), and it seems the whitespace that is left when you delete a Node in the xml file must be handled via code, my question is, how do you know that it is an empty text node and then delete it.
Regards, Pavan -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vedantam, Pavan Sent: Monday, January 30, 2006 4:54 PM To: Rush Manbert Cc: [email protected] Subject: RE: [xml] Delete XML Nodes 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:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 12:20 PM To: Vedantam, Pavan Cc: [email protected] 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 _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
