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 >
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 (>)
Joined: Mar 22, 2005
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.