<!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> </DIV>
<DIV>I have found the problem. When the xml is outputted, whitespaces are
added. It wasn't a line break, but a whitespaces, which caused line
wrapping. If i strip the whitespaces the encryption process suceeds.
Is this my parser or XMLOutputter?</DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV> </DIV>
<DIV>Brett<BR><BR>>>> "Alastair Rodgers"
<alastair.rodgers@phocis.com> 07/11/03 03:40AM >>><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><!ELEMENT
BC:patient (BC:dummy*)><BR><!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><?xml version="1.0" encoding="UTF-8"?><BR><!DOCTYPE
BC:blue_card SYSTEM "blue_card.dtd"><BR><BC:blue_card xmlns:BC="<A
href="http://mdh-fyi.health.state.mn.us/"
?>http://mdh-fyi.health.state.mn.us"</A>><BR> <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. 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>>>> John Jefferson
<surfer97301@yahoo.com> 07/10/03 11:51AM >>><BR>Are you using
CDATA tags around the encrypted portions<BR>of your xml? <BR><BR><BR>--- Brett
Astleford<BR><Brett.Astleford@health.state.mn.us> wrote:<BR>> Hi
All,<BR>> <BR>> Just joined the list, been using JDOM for
awhile,<BR>> great product. I am<BR>> encrypting data from a web
site and putting it into<BR>> a XML file. Problem<BR>> being, the
string of encrypted characters are<BR>> getting anomalous line<BR>>
breaks, causing the decryption to fail. <BR>> <BR>> Using SAX
builder and XMLOutputter, j2sdk1.4.1,<BR>> tomcat 4.1.18, xerces<BR>>
parser, and JCE/base64 encoding. Can I change my<BR>> DTD to not allow
line<BR>> breaks? Is this file system specific? Currently<BR>>
running on Solaris. Any<BR>> ideas are greatly
appreciated.<BR>> <BR>> -brett<BR>>
<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>