added xml2json functionality