use xmlfile from properties and pom; factor out some redundant code