<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=2></FONT>Hi Guys,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have found the problem.&nbsp; When the xml is outputted, whitespaces are 
added.&nbsp; It wasn't a line break, but a whitespaces, which caused line 
wrapping.&nbsp; If i strip the whitespaces the encryption process suceeds.&nbsp; 
Is this my parser or XMLOutputter?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Brett<BR><BR>&gt;&gt;&gt; "Alastair Rodgers" 
&lt;alastair.rodgers@phocis.com&gt; 07/11/03 03:40AM &gt;&gt;&gt;<BR>Hello 
Brett, <BR><BR>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?<BR><BR><BR>-----Original 
Message-----<BR>From: jdom-interest-admin@jdom.org [<A 
href="mailto:jdom-interest-admin@jdom.org]">mailto:jdom-interest-admin@jdom.org]</A> 
On Behalf Of Brett Astleford<BR>Sent: 10 July 2003 18:06<BR>To: 
jdom-interest@jdom.org; surfer97301@yahoo.com<BR>Subject: Re: [jdom-interest] 
new to list --encryption/line break issue<BR><BR><BR>yeah, but in a ATTLIST not 
individual ELEMENT tags here is a portion of my DTD<BR><BR>&lt;!ELEMENT 
BC:patient (BC:dummy*)&gt;<BR>&lt;!ATTLIST BC:patient<BR>BC_UID CDATA 
#IMPLIED<BR>firstName CDATA #IMPLIED<BR>lastName CDATA #IMPLIED<BR>address CDATA 
#IMPLIED<BR><BR>For example, I will get line breaks in strings like the lastName 
attribute.<BR><BR>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<BR>&lt;!DOCTYPE 
BC:blue_card SYSTEM "blue_card.dtd"&gt;<BR>&lt;BC:blue_card xmlns:BC="<A 
href="http://mdh-fyi.health.state.mn.us/" 
?>http://mdh-fyi.health.state.mn.us"</A>&gt;<BR>&nbsp; &lt;BC:patient 
BC_UID="Wed Jul 09 14:47:48 CDT 2003" 
firstName="LfkafI1LN7I=4ZQ9W/dhbM3HourBRHS0bw==" 
lastName="8SBngTYO<BR>uow=x3cQ7NJB9wf4vk0xirxohiomjL95ITc3yKE1GFOtOdlUsbe+tC6Sb677W0INd6jDJhKP+vsvZ9lA<BR>P60Bcv8mXw==" 
address="Hl0egDSZkp0=kYSsHrBEfnSf/TDJtjyRHQ==" <BR><BR>Seems as if when the 
string hits a certain size, it line breaks.&nbsp; It almost would have to be a 
xml formatting thing, or the native file system modifies as it is 
outputted.<BR><BR>thanks,<BR><BR>Brett<BR><BR>&gt;&gt;&gt; John Jefferson 
&lt;surfer97301@yahoo.com&gt; 07/10/03 11:51AM &gt;&gt;&gt;<BR>Are you using 
CDATA tags around the encrypted portions<BR>of your xml? <BR><BR><BR>--- Brett 
Astleford<BR>&lt;Brett.Astleford@health.state.mn.us&gt; wrote:<BR>&gt; Hi 
All,<BR>&gt;&nbsp; <BR>&gt; Just joined the list, been using JDOM for 
awhile,<BR>&gt; great product.&nbsp; I am<BR>&gt; encrypting data from a web 
site and putting it into<BR>&gt; a XML file.&nbsp; Problem<BR>&gt; being, the 
string of encrypted characters are<BR>&gt; getting anomalous line<BR>&gt; 
breaks, causing the decryption to fail.&nbsp; <BR>&gt;&nbsp; <BR>&gt; Using SAX 
builder and XMLOutputter, j2sdk1.4.1,<BR>&gt; tomcat 4.1.18, xerces<BR>&gt; 
parser, and JCE/base64 encoding.&nbsp; Can I change my<BR>&gt; DTD to not allow 
line<BR>&gt; breaks?&nbsp; Is this file system specific?&nbsp; Currently<BR>&gt; 
running on Solaris.&nbsp; Any<BR>&gt; ideas are greatly 
appreciated.<BR>&gt;&nbsp; <BR>&gt; -brett<BR>&gt; 
<BR><BR><BR>__________________________________<BR>Do you Yahoo!?<BR>The New 
Yahoo! Search - Faster. Easier. Bingo.<BR><A 
href="http://search.yahoo.com/">http://search.yahoo.com</A><BR>_______________________________________________<BR>To 
control your jdom-interest membership:<BR><A 
href="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A><BR></DIV></BODY></HTML>