"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.
>
As Ozgur mentioned we use the Xerces Serializers. You can try to
configure your own Serializer and simply pass it as a DocumentHandler to
the Marshaller.
Or maybe you can encode the signature in base64 before marshalling.
--Keith
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev