A class for creating xml files from patterns