I used a httpservice which returns a xml as a result.But the content itself has a '<' symbol or '>' symbol , it leads to error ! How can i handle this? Thanks in advance.
views:
30answers:
2
A:
Either escape the content or enclose it in cdata. see http://xml.silmaril.ie/authors/specials/
RC
2010-08-18 07:06:24
RC,Thanks for your reply.Im analysing the part.Will post the details once it is done.
Sankara narayanan
2010-08-18 08:54:11
A:
Thanks RC, It works good.
while we forming the tags, we have to use 'cdata' for escaping special characters.
below tag brings error:
<myTagname> includes<>symbols </mytagname>
i changed as follwing :
<myTagName> <![CDATA[ includes<>symbols ]]> </mytagName>
It works fine.
Thanks again.
Regards, Sankara narayanan Ekambaranathan.
Sankaranarayanan
2010-08-23 09:34:08
If you need to clarify you question, then edit the question. If you wish to comment on an answer, then comment on an answer. Only **answer** a question if you have an **answer**. (And read the formatting instructions on the right hand side of the editor so your code isn't lost when rendered)
David Dorward
2010-08-23 09:36:12