add xml generation