[jdom-interest] new to list --encryption/line break issue
Alastair Rodgers
alastair.rodgers at phocis.com
Fri Jul 11 01:40:35 PDT 2003
Hello Brett,
Just a though - have you checked that it isn't your base 64 encoding that is putting the line breaks in? Or is it unboken if you dump the string to stdout before you add it to the JDOM tree?
-----Original Message-----
From: jdom-interest-admin at jdom.org [mailto:jdom-interest-admin at jdom.org] On Behalf Of Brett Astleford
Sent: 10 July 2003 18:06
To: jdom-interest at jdom.org; surfer97301 at yahoo.com
Subject: Re: [jdom-interest] new to list --encryption/line break issue
yeah, but in a ATTLIST not individual ELEMENT tags here is a portion of my DTD
<!ELEMENT BC:patient (BC:dummy*)>
<!ATTLIST BC:patient
BC_UID CDATA #IMPLIED
firstName CDATA #IMPLIED
lastName CDATA #IMPLIED
address CDATA #IMPLIED
For example, I will get line breaks in strings like the lastName attribute.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE BC:blue_card SYSTEM "blue_card.dtd">
<BC:blue_card xmlns:BC="http://mdh-fyi.health.state.mn.us">
<BC:patient BC_UID="Wed Jul 09 14:47:48 CDT 2003" firstName="LfkafI1LN7I=4ZQ9W/dhbM3HourBRHS0bw==" lastName="8SBngTYO
uow=x3cQ7NJB9wf4vk0xirxohiomjL95ITc3yKE1GFOtOdlUsbe+tC6Sb677W0INd6jDJhKP+vsvZ9lA
P60Bcv8mXw==" address="Hl0egDSZkp0=kYSsHrBEfnSf/TDJtjyRHQ=="
Seems as if when the string hits a certain size, it line breaks. It almost would have to be a xml formatting thing, or the native file system modifies as it is outputted.
thanks,
Brett
>>> John Jefferson <surfer97301 at yahoo.com> 07/10/03 11:51AM >>>
Are you using CDATA tags around the encrypted portions
of your xml?
--- Brett Astleford
<Brett.Astleford at health.state.mn.us> wrote:
> Hi All,
>
> Just joined the list, been using JDOM for awhile,
> great product. I am
> encrypting data from a web site and putting it into
> a XML file. Problem
> being, the string of encrypted characters are
> getting anomalous line
> breaks, causing the decryption to fail.
>
> Using SAX builder and XMLOutputter, j2sdk1.4.1,
> tomcat 4.1.18, xerces
> parser, and JCE/base64 encoding. Can I change my
> DTD to not allow line
> breaks? Is this file system specific? Currently
> running on Solaris. Any
> ideas are greatly appreciated.
>
> -brett
>
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list