var to xml