You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by wesleyalanking <we...@yahoo.com> on 2006/06/07 19:19:49 UTC
Force replacement for <, >, &, ', and "
Is there a way to always force the serializer to print > for >.
I understand according to the XML specifications, this only needs to be done in CDDATA as mentioned here http://issues.apache.org/jira/browse/XERCESJ-680.
The reason I need to do this is I am using Axis2 to send data to another endpoint. This other endpoint is using some 3rd party program for XML parsing that needs to have <, >, &, ', and " all replaced with their escape strings. The serializer already does < and &, can is there a way to tell it to also do the other three (', ", and >). If I had a way to change the program they are using I would, but unfortunately that's out of my control.
I have looked all over for this, so any help is very much appreciated. Thanks for your time.
Wes
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Re: Force replacement for <, >, &, ', and "
Posted by Eran Chinthaka <ch...@opensource.lk>.
Hi,
This seems to be a parser question. Forwarding this to stax_builders list.
(I personally do not think this is a right thing to do)
wesleyalanking wrote:
> Is there a way to always force the serializer to print > for >.
>
> I understand according to the XML specifications, this only needs to be
> done in CDDATA as mentioned here
> http://issues.apache.org/jira/browse/XERCESJ-680.
>
> The reason I need to do this is I am using Axis2 to send data to another
> endpoint. This other endpoint is using some 3rd party program for XML
> parsing that needs to have <, >, &, ', and " all replaced with their
> escape strings. The serializer already does < and &, can is there a way
> to tell it to also do the other three (', ", and >). If I had a way to
> change the program they are using I would, but unfortunately that's out
> of my control.
>
> I have looked all over for this, so any help is very much appreciated.
> Thanks for your time.
>
> Wes
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>