[Tutor] Writing to XML file with minidom

Travis Spencer travislspencer at gmail.com
Wed Aug 31 16:47:12 CEST 2005

On 8/30/05, Johan Geldenhuys <johan at accesstel.co.za> 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"?>



Travis Spencer 

P.S. Please don't send HTML e-mails.

More information about the Tutor mailing list