Base xml generation