Convert inputs to xml style with closing /