How can I escape "&" in XML? [duplicate]

Solution 1:

Use & in place of &.

Change it to:

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

Solution 2:

& → &amp;

< → &lt;

> → &gt;

Solution 3:

You can use &amp; in place of &

http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined%5Fentities%5Fin%5FXML