Re: [xml] Getting element content non-recursively

On Wed, Sep 20, 2006 at 09:20:50AM +0100, Caroline Middlebrook wrote:

copy and paste ! Yes you need 2 operations to be sure if you don't
understand libxml2 internals:


Aha! Thanks very much, problem solved! However, those functions above led me
to xmlReplaceNode which did exactly what I wanted. :-)

  Try to not move nodes from one document to another, you may hit pointer
problems related to dictionnaries, that's why it's better to make a copy
first for the target document.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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