Re: [xml] xmlRemoveNode and removing elements

Date view Thread view Subject view Author view

From: Daniel Veillard (Daniel.Veillard@imag.fr)
Date: Tue Jan 09 2001 - 04:24:09 EST


On Mon, Jan 08, 2001 at 07:54:40PM +0000, Gary Pennington wrote:
>
> Hi,
>
> I just started working with libxml in the last couple of weeks; so far
> I'm very pleased with it's stability and performance.
>
> I have a question though.
>
> I need to be able to remove elements from documents prior to serializing
> them and I'm concerned to note that xmlRemoveNode has not been
> implemented. The only references to removing nodes in the mailing list
> go back to last September and March and there were no replies to either
> query. The tree.h header file has a TODO comment next to the function
> prototype, so I guess people know it hasn't been implemented.
>
> Before I start work on implementing this myself, I just thought it would
> be worth finding out :-
>
> a. Has anyone already done this work?

  Hum, actually I use the sequence
                 xmlUnlinkNode(node);
                 xmlFreeNode(node);

with success so far, I will add xmlRemoveNode()

> b. Has anyone has any idea how complex it is likely to be?
> c. Is there any other way to remove elements from a tree (I've scoured
> the documentation and can't find one - but I may have missed something)?
[...]
> Gary Pennington
>
> Staff Engineer
> Solaris Kernel Resources

  Don't tell me you're using libxml for kernel stuff :-)

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
daniel@veillard.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


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jan 09 2001 - 04:43:59 EST