Begin xml generation