views:

30

answers:

2

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.

A: 

Either escape the content or enclose it in cdata. see http://xml.silmaril.ie/authors/specials/

RC
RC,Thanks for your reply.Im analysing the part.Will post the details once it is done.
Sankara narayanan
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
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