List Info

Thread: Binary data to child




Binary data to child
user name
2006-08-10 08:11:32
On 8/10/06, Kannaiyan Natesan <kannaiyaninnomedia.com.sg> wrote:
> Thanks Aron.
>
> I understand xml is a text.
> If there is a API where I can just add
> xmlNewBChild(parentnode,tagname,binarydata,datalength);

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.

Regards,
Aron

> ----- Original Message -----
> From: "Aron Stansvik" <elvstonegmail.com>
> To: <xmlgnome.org>
> Cc: "Kannaiyan Natesan" <kannaiyaninnomedia.com.sg>
> Sent: Tuesday, August 08, 2006 5:30 PM
> Subject: Re: [xml] Binary data to child
>
>
> > On 8/8/06, Kannaiyan Natesan <kannaiyaninnomedia.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
> >
> >
>
>
>
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xmlgnome.org
http://mai
l.gnome.org/mailman/listinfo/xml
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )