Moved xml generation to new script.