OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

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

RE: problems with datasection

At 07:18 PM 11/06/01 -0400, Steve Rowe wrote:
>Sounds like you need to convert the binary data which you're
>attempting to store in a CDATA section into a form which will be XML
>compliant.  The standard solution for this problem is Base64 encoding.

If it's base64, you don't need to use a CDATA section; one of
the nice things about base64 is it doesn't use < or > or & -
[/+a-zA-Z0-9] if I recall correctly.  Furthermore, base64 is 
smart about whitespace, so you can even make it look pretty.  
Works very nicely indeed with XML, if it didn't exist we would 
have had to invent it.

  <someBinaryGibberish encoding="base64">

I'm sure there are some xsd: attributes you could use to say 
in a standardized way that this is base64, but <blush> I don't
know it.  XSD gureaux?

I'm always happy to avoid using CDATA sections if I can. -Tim