You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by "Lopez Cantero, Sergio" <SL...@sadiel.es> on 2008/07/15 09:57:23 UTC

Remove carry return from xml signature

Hi, I've seen that every time you create a xmlsignature, nodes get "formatted" 
with a carry return at the end of the starting tag, p. ex:
<node>
<node2></node2>
</node>
Is there a way to deactivate this behavior? 
I need an output like:
<node><node2></node2></node>
Thanks

RE: Remove carry return from xml signature

Posted by "Lopez Cantero, Sergio" <SL...@sadiel.es>.
Thanks, this should fix it, but I've seen it's a feature from 1.4.2
So I'll have to upgrade.

-----Mensaje original-----
De: Sean.Mullan@Sun.COM [mailto:Sean.Mullan@Sun.COM] 
Enviado el: miƩrcoles, 16 de julio de 2008 16:20
Para: security-dev@xml.apache.org
Asunto: Re: Remove carry return from xml signature



Lopez Cantero, Sergio wrote:
> Hi, I've seen that every time you create a xmlsignature, nodes get "formatted" 
> with a carry return at the end of the starting tag, p. ex:
> <node>
> <node2></node2>
> </node>
> Is there a way to deactivate this behavior? 

Yes. If you set the system property named
"org.apache.xml.security.ignoreLineBreaks" to true, line breaks will not 
be inserted in the Signature. This includes line breaks after elements 
and in base64 encoded values.

--Sean

Re: Remove carry return from xml signature

Posted by Sean Mullan <Se...@Sun.COM>.

Lopez Cantero, Sergio wrote:
> Hi, I've seen that every time you create a xmlsignature, nodes get "formatted" 
> with a carry return at the end of the starting tag, p. ex:
> <node>
> <node2></node2>
> </node>
> Is there a way to deactivate this behavior? 

Yes. If you set the system property named
"org.apache.xml.security.ignoreLineBreaks" to true, line breaks will not 
be inserted in the Signature. This includes line breaks after elements 
and in base64 encoded values.

--Sean