[xml] UTF8-problems when using xmlCopyDoc and xmlDocDump

Date view Thread view Subject view Author view

From: Anders Karlsson (pugo@cendio.se)
Date: Tue Jan 30 2001 - 11:09:09 EST


I have found some problems when using 'xmlCopyDoc' to copy a DOM tree and
then saving the new tree with 'xmlDocDump'.

I have a 'xmlDocPtr' pointing to a tree and I use 'xmlCopyDoc' and get a
pointer to a new tree. This works fine.

The problem is that I can't use 'xmlDocDump' on the new tree (it works
fine on the source tree). When trying xmllib responds:

xmlDocDump: document not in UTF8

Why? When I look at the resulting tree it looks OK. Should I copy
something more than just the tree?

Regards,
--------------------------------------------------------------------------
Anders Karlsson Email: pugo@cendio.se
Cendio Systems AB WWW: www.cendio.se
Teknikringen 3, Voice: +46 - (0)13 - 21 46 00
SE-583 30 LINKÖPING, SWEDEN Fax: +46 - (0)13 - 21 47 00

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jan 30 2001 - 12:45:27 EST