I am using axis2 web service and i want to retun an XML as string in the response. In my response all the "<" are converted in to & lt; as expected by our client but ">" is not being converted to & gt;
Can anyone hlp me out with this. My client is expecting & gt; for >
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35220
7
posted
0
Axis does not change the payload on its own - your code needs to do that. Be sure to wrap this kind of data in a CDATA section.
If that is the case then even "<" should not be escaped, right?.
My question is why only few characters are escaped (<) and few are not (>)
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35220
7
posted
0
Keep in mind that certain characters MUST be replaced by their logical entities, or placed in CDATA sections, in order to be transported over XML. See section 2.4 of the XML specification for more information, especially for how < and > differ from one another.