I am wondering about the pros and cons of using base64-typed data versus
using a CDATA section.

If I want to transfer data contained in an xml document I can either

a) put the data in an element whose data is CDATA escaped. This can give me
trouble with encoding, primarily between iso8859 and UTF16.


b) base64-encode the data and put in an element with datatype base64. This
give me no trouble with the encoding.

What are the pros and cons with these different ways?

Since MS is heavily using base64 in NET-ish, isnt this the way to go?