implement simple XMLgenerator