Fixed variable xml writing