Re: [xml] Extracting multiple XML fragments of the same type
- From: Holger Rauch <Holger Rauch heitec de>
- To: xml gnome org
- Subject: Re: [xml] Extracting multiple XML fragments of the same type
- Date: Wed, 21 Aug 2002 14:26:13 +0200 (CEST)
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]