Check out http://castor.exolab.org/tips-tricks.html#XML:-Indentation
for specific instructions... but change org.exolab.castor.indent=true in
the properties file.

Also, you'll need to make sure that the incoming XML request is indented
exactly like Castor does anyways... I'd remove all indentation in your
case, before getting the digital signature, since that's the only way to
be 100% sure the format is the same. (Tabs versus spaces, and how many
spaces, etc)

On Wed, 2002-02-20 at 12:43, Tam, Javier wrote:
> Hi,
> 
> Is there a way to prevent Castor from removing the line feeds and white
> spaces when marshalling an object to XML?
> 
> I am attempting to perform a digital signature over XML data and,
> afterwards, I am performing some object manipulation using Castor.
> 
> However, once I marshal the object back to XML, the line feeds and white
> spaces have been removed and therefore, the signature does not verify
> properly.
> 
> Thanks,
> Javier 
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
-- 

Virtually, 
Ned Wolpert <[EMAIL PROTECTED]>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to