Baby
Baby

Reputation: 1

Error in XML Parsing due to special characters

I am parsing an XML which has links with link tags. But it gives me an error because I think the link has special characters (Also I am using string replace function for "&").

Example link: http://tizentr.net/ara/linkler_tPEE9ZwTmy0.xml

Upvotes: 0

Views: 311

Answers (1)

srini.venigalla
srini.venigalla

Reputation: 5145

You have to replace the special characters with their entity equivalents. for example:

> becomes >
< becomes &lt;
& becomes &amp;

Upvotes: 1

Related Questions