xml dump: output a <variables> with all variables