On 8/10/06, Kannaiyan Natesan <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Cc: "Kannaiyan Natesan" <[EMAIL PROTECTED]>
> Sent: Tuesday, August 08, 2006 5:30 PM
> Subject: Re: [xml] Binary data to child
>
>
> > On 8/8/06, Kannaiyan Natesan <[EMAIL PROTECTED]> 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/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to