My strings.xml looks like this:
<string name = "app_name>A & B</string>
Eclipse is throwing an error: "The entity name must immediately follow the & in the entity reference". What can be the reason?
My strings.xml looks like this:
<string name = "app_name>A & B</string>
Eclipse is throwing an error: "The entity name must immediately follow the & in the entity reference". What can be the reason?
& is a special character in xml, it indicates start of an entity.So use "&" instead of &(add "amp;" to &)
You must encode the '&' symbol with &
while you are using it inside XML files.
This should work fine
<string name = "app_name>A & B</string>