in reply to Re^3: binary data in XML (CDATA, ha!)
in thread binary data in XML

Perhaps I was a little unclear, so for the benefit of the slow, I was offering two alternatives:

Given that there was no example of what exactly the offending "binary data" was I thought it best to offer both options: the simple for more vanilla ASCII-y data and encoding for arbitrary octet streams.

Update: Further clarified what types of data suggest which alternative.

The cake is a lie.
The cake is a lie.
The cake is a lie.