I want to create an app which asks the user questions, scores the answers and potentially react to them presenting subsequent questions. For this I thought of something like the following XML in res/xml/questions.xml:
<?xml version="1.0" encoding="utf-8"?>
<questions>
<question id="000" category="2">
<text>Yes or no?</text>
<answers>
<choice id="0" score="+5">Yes</choice>
<choice id="1" score="-5">No</choice>
</answers>
</question>
<question id="010" category="1">
<parent id="000" choice="0"/>
<text>Whats my question?</text>
<answers>
<choice id="0" score="-5">Shut up.</choice>
<choice id="1" score="0">I don't care.</choice>
<choice id="2" score="+5">I like your attitude!</choice>
</answers>
</question>
</questions>
I want to support multiple languages. How can I translate the contents of <text> and <choice> without redefining the same logic in different XMLs? (Or should I abandon the XML approach altogether?)