tuned xml generation