Just as a remark I have not tested this directly with the Android SDK, but I use it with Xamarin and it's working perfectly for me
You can declare new entities in your XML to be able to reuse text, making it easier to update certain values that are repeated, I am using it as follows
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE resources [
<!ENTITY telefone "(12) 3456 7890">
<!ENTITY site "http://www.meusite.com.br">
]>
<resources>
<string name="contato">Entre em contato com o nosso suporte pelo telefone &telefone;</string>
<string name="saibamais">Conheça mais sobre o nosso produto visitando no website &site;.</string>
</resources>
Notice that in XML I declare an entity called telefone
, and it is used as &telefone;
in XML