Re: best practice to "XMLify" binary data

Karl Waclawek <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Stefan Momma wrote:
> We have the following situation:
>
> XML documents are generated by an application, and sometimes there are
> binary characters embedded somewhere inside a CDATA section of the document
> which are not valid UTF-8.
> These XML data are parsed using expat in a different application.
>
> Is there a "best practice" what to do as the final step in the XML
> generation process to manipulate the data such that they do not end up with
> invalid token errors for this material inside CDATA? We want to retain as
> much as possible of the original data, so some kind of replacement
> representation would be helpful. Which tools can you recommend for that
> task?
>
>   
Use base64 encoding.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.