There is a function Document::create_root_node_by_import, which does
this. However, you must merge it with the main program document first,
and then put in the other non-XML info if you do this.
Before this function existed, I had to use the C API to do stuff like
this. I'd be interested in knowing if this function will work to solve
your problem. Maybe a new function is needed.
Jim
On Fri, 2004-10-29 at 18:11, Javier Vilarroig wrote:
> Hi.
>
> Is there any way to copy a Document contents to another Document
> with the same DTD?
>
> I'm programing a litle app that creates a new Document in order to
> store data imported from external non XML information. After doing some
> proofing on it, I want to merge it with the main program Document.
>
> Thanks in advance
> Javor
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by:
> Sybase ASE Linux Express Edition - download now for FREE
> LinuxWorld Reader's Choice Award Winner for best database on Linux.
> http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
> _______________________________________________
> Libxmlplusplus-general mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libxmlplusplus-general
|