How can I escape “&” in XML? [duplicate]

I write

 <string name="magazine">Newspaper & Magazines</string>

in file strings.xml.

But the compiler says:

The entity name must immediately follow the ‘&’ in the entity reference. strings.xml /OOReaderWidget/res/values line 9 Android XML Format Problem

How can I show a “&” in strings.xml?

3 Answers
3

Leave a Comment