generate xml validation