program to generate perfect XML files