Reputation: 13
<string name="feat"> * Good User Interface \n * Fast Searching \n * Text To Speech \n * Simple Interface & Offline \n * Low Memory Usage \n * Favourites option \n * Login Option \n * Social Network Link \n * Sharing Application Option </string>
this is the statement got error. The error is "The entity name must immediately follow the '&' in the entity reference.'
Upvotes: 0
Views: 169
Reputation: 7974
While the above solutions will work Another good solution can be to enclose your string resource in CDATA tag like:
<string name="feat"><![CDATA[ * Good User Interface \n * Fast Searching \n * Text To Speech \n * Simple Interface & Offline \n * Low Memory Usage \n * Favourites option \n * Login Option \n * Social Network Link \n * Sharing Application Option ]]></string>
This way it will be easy as you won't have to replace each and every & with &
which is tedious task.This may work with all special characters i guess(not tested).
Upvotes: 1
Reputation: 18775
My guess is that your XML datasource contains '&' character in some data.
If so replace '&' with &
and try, it should work properly.
In Additional to it, Some of other Common in xml how to escape the errors:
Upvotes: 1