Re: [xml] Extracting multiple XML fragments of the same type



Hi Daniel!

Thanks for your reply!

On Tue, 20 Aug 2002, Daniel Veillard wrote:

[...]
  Basically you shouldn't have to serialize and reparse every fragment,
simplest is probably to create each new document using
  doc = xmlNewDoc("1.0");
and then use 
  xmlDocCopyNode(curNode, doc, 1);
to generate a new copy of the tree in the new document.

That's what I tried, but even though curNode correctly points to a
<Document>, doc only contains the XML declaration after these two steps.
Did I miss anything?

Thanks for any help!

Kind regards,

        Holger





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