Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity name must Immediately follow the '&' in the entity reference

Tags:

string

android

I created String array for the List of Bank names in string.xml file. When I'm using item name State Bank of Bikaner & Jaipur as array item:

 <item>State Bank of Bikaner & Jaipur</item>

I'm getting the following error: "The Entity name must Immediately follow the '&' in the entitiy reference"

Ideas on how to fix this? Any help would be greatly appreciated.

like image 476
Jaimin Modi Avatar asked Dec 04 '25 18:12

Jaimin Modi


1 Answers

The & symbol is an entity specifier in XML. If you want to put a literal ampersand in the XML, you will need to use &amp;, which is the standard entity for an ampersand.

like image 115
ElGavilan Avatar answered Dec 07 '25 15:12

ElGavilan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!