I would prefer a dictionary of constants for all of these template strings, since some of them are used multiple times (p.xml for example).