Re: [xml] insert node



On Sat, Sep 04, 2004 at 08:17:03AM +0200, Stephane Pellegrino wrote:
Hi,

I try again :)

  I think reading would be more efficient !
  http://xmlsoft.org/html/libxml-tree.html

Is there a better/faster solution than re-create a new doc+create node+copy 
old node, etc... ?

  get root element
  unlink 
  new node
  set root element
  add children

  mapping to the exact functions and generating code left as an exercise

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]