On 8/30/05, Johan Geldenhuys <[EMAIL PROTECTED]> wrote:
> One snag that I found is that the des encryption that I used for the data 
> that is 
> written back, it is not parsed correctly when the file is read again with the 
> new 
> data in it. There is non-printable characters or non-ascii chars in that 
> gives errors
> from expat when the contents is parsed.
> I had to use a different encryption algorithm. I am going to do some tests on 
> it 
> now.

Put the cyphertext in a CDATA section, so the parser knows to ignore
its contents:

<?xml version="1.0"?>
<root>
    <cyphertext><![CDATA[
        ^KI^[?+?6?
    ]]>
    </cyphertext>
</root>

-- 

Regards,

Travis Spencer 

P.S. Please don't send HTML e-mails.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to