Ned Wolpert wrote:
> 
> 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.
> 

What does indenting have to do with Castor removing whitespace when
marshalling a String from a xml-mapped java object?

Before I was told it was the Xerces XMLSerializer which was removing
whitespace from String objects marshalled to XML using xml-mapping.

> 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
> 
>   
>------------------------------------------------------------------------------------------
>                        Name: signature.asc
>    signature.asc       Type: application/pgp-signature
>                 Description: This is a digitally signed message part

-- 
----------------------------------------------------------------------
Glenn Nielsen             [EMAIL PROTECTED] | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to