[jdom-interest] new to list --encryption/line break issue

Brett Astleford Brett.Astleford at health.state.mn.us
Thu Jul 10 10:06:11 PDT 2003


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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20030710/eedf1c69/attachment.htm


More information about the jdom-interest mailing list