Re: [xml] Binary data to child

On 8/10/06, Kannaiyan Natesan <kannaiyan innomedia com sg> wrote:
Thanks Aron.

I understand xml is a text.
If there is a API where I can just add

There is no such API in libxml2, AFAIK.

Won't it be cute ?

You realize that binary data must not occur in XML unless it has been
encoded to a text representation first? I don't think it would be cute
if libxml2 had this API, since it's not generally useful enough. You
may think different.

If I write the same base64 conversion what is the use of having libxml?

libxml2 is for working with XML, not for doing binary to text
encoding. That is up to you, or another library.


----- Original Message -----
From: "Aron Stansvik" <elvstone gmail com>
To: <xml gnome org>
Cc: "Kannaiyan Natesan" <kannaiyan innomedia com sg>
Sent: Tuesday, August 08, 2006 5:30 PM
Subject: Re: [xml] Binary data to child

> On 8/8/06, Kannaiyan Natesan <kannaiyan innomedia com sg> wrote:
>> Hi,
>>     How can I add a binary data to xml with a defined length? I just have
>> only --with-tree compiled in my libxml build.
> XML is text. Serialize the data to something like base64 first?
> Regards,
> Aron

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