[xml] A need for a function

Date view Thread view Subject view Author view

From: Tuomas Luttinen (tuo@wapit.com)
Date: Mon Aug 28 2000 - 09:37:35 EDT


I'm using libxml in a compiler that changes WML to binary format.
So the problem I face is that I'd need to get the content of the
next nodes in another character set than UTF-8 in time to time.
With a brief look I got an impression that changing the character
set of the document would need saving the hole document, which is
rather clumsy when fiddling with parts of the document in memory.

So how about a general use function for changing the character set
for a pure text string that could be called for content of a text node
or name of an element etc?

The point being here that a couple hundred ä:s and ö:s etc can make a
huge difference when marked with one versus several bytes when the
hole document must be 1400 bytes at maximum.

-- 
Tuomas Luttinen <tuo@wapit.com>
   Software Developer, Kannel project <http://www.kannel.org>
      Wapit Ltd
----
Message from the list xml@xmlsoft.org
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@xmlsoft.org


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Aug 28 2000 - 09:43:23 EDT