Refactor/string array to xml