I'm a bit confused on what you're trying to accomplish because your question is not written clearly, but I'll take a stab in the dark and assume your question is
How do I append a number onto the end of a string I have in XML?
Edit: My assumption was wrong, it appears your question is rather
How do I get a String from XML by name reference?
Using the getIdentifier() method of a Context will look up an ID by name...but be warned that this operation is not recommended if it's used extremely often, as it's slow.
public class CytatCore {
public static void cytatCore(Context context, int number, TextView tv) {
int textId = context.getResources().getIdentifier("text" + number, "string", context.getPackageName());
tv.setText(textId);
}
}